Skip to content

Instantly share code, notes, and snippets.

@lagergren
Created May 6, 2026 13:32
Show Gist options
  • Select an option

  • Save lagergren/590483087cbf452e0a531482cad4c806 to your computer and use it in GitHub Desktop.

Select an option

Save lagergren/590483087cbf452e0a531482cad4c806 to your computer and use it in GitHub Desktop.
Pyright strict-mode real-bug audit for sics-ai/zombiesnack PR #2291

Pyright strict-mode real-bug report

Generated against the chore/pyright-1.1.409-and-parallel branch (PR #2291) after temporarily flipping typeCheckingMode = "strict" and running pyright --threads. Strict mode is not enabled in the PR — this is a one-off audit.

205 primary real-bug errors across 20 modules. "Real bug" = pyright rules that flag probable runtime issues (not "couldn't infer type" noise).

Per-module summary

Module Total Breakdown
src/hyperstar 48 UnnecessaryComparison:37, ConstantRedefinition:9, CallIssue:2
src/pap_rob 39 UnnecessaryComparison:39
src/camera 23 UnnecessaryComparison:16, ConstantRedefinition:7
src/robots 19 UnnecessaryComparison:13, IndexIssue:6
tests/integration 16 UnnecessaryComparison:13, IndexIssue:2, ArgumentType:1
src/data_engine 11 UnnecessaryComparison:9, ConstantRedefinition:2
tests/unit 11 IndexIssue:6, ConstantRedefinition:3, UnnecessaryComparison:2
src/image 9 UnnecessaryComparison:9
src/infra 8 UnnecessaryComparison:8
src/synq_api 5 ConstantRedefinition:3, UnnecessaryComparison:2
src/utils 4 UnnecessaryComparison:4
src/simulation 3 UnnecessaryComparison:3
src/camera_tools 2 ConstantRedefinition:2
src/automation_tasks 1 UnnecessaryComparison:1
src/barcodescanner 1 UnnecessaryComparison:1
src/deploy 1 UnnecessaryComparison:1
src/devops 1 UnnecessaryComparison:1
src/frameset_tools 1 UnnecessaryComparison:1
src/pap_manual 1 CallIssue:1
src/viz_server 1 UnnecessaryComparison:1

Top files

File Count
src/pap_rob/pap_rob_api.py 13
src/pap_rob/wms_interaction_api.py 8
src/robots/impl/hkm/hkm_robot_sim.py 6
src/robots/impl/kuka/ads/network/pyads_bugfixes.py 6
tests/unit/pap_rob/models_test.py 6
src/camera/calibration.py 5
src/camera/femtomega/imagesource_example.py 5
src/hyperstar/intent_editor/auto_intent.py 5
src/hyperstar/models/hyperflow.py 5
src/image/analysis/pickpair.py 5
tests/integration/hyperstar/model_integration/multi_iteration_sampling_test.py 5
tests/integration/hyperstar/model_integration/training_prefill_test.py 5
src/data_engine/processing/batch_processor.py 4
src/hyperstar/hyperstar_loss_statistics.py 4
src/hyperstar/models/hyperformer.py 4
src/camera/femtomega/femtotest.py 3
src/hyperstar/robot_data/dataloader.py 3
src/synq_api/sics_api_calls.py 3
tests/integration/pap_rob/pick_overlay_test.py 3
tests/unit/image/transformers/hue_transformer_test.py 3

Per-error detail

src/automation_tasks

  • UnnecessaryComparison src/automation_tasks/envelope_pick_and_place/main.py:60 — Condition will always evaluate to False since the types "PickAndPlaceModelResult" and "None" have no overlap (reportUnnecessaryComparison)

src/barcodescanner

  • UnnecessaryComparison src/barcodescanner/barcodescanner.py:126 — Condition will always evaluate to True since the types "bytes" and "None" have no overlap (reportUnnecessaryComparison)

src/camera

  • UnnecessaryComparison src/camera/calibration.py:178 — Condition will always evaluate to False since the types "CameraExtrinsics" and "Literal[False]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/calibration.py:350 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/calibration.py:491 — Condition will always evaluate to False since the types "list[FrameSet]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/calibration.py:495 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/calibration.py:527 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/camera.py:54 — Condition will always evaluate to False since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/cameras_list.py:222 — Condition will always evaluate to True since the types "bool" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/camera/femtomega/femtotest.py:93 — "WIDTH" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/camera/femtomega/femtotest.py:93 — "HEIGHT" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/camera/femtomega/femtotest.py:105 — Condition will always evaluate to False since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/femtomega/imagesource.py:98 — Condition will always evaluate to False since the types "FemtoMega" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/femtomega/imagesource.py:170 — Condition will always evaluate to False since the types "dict[str, Any]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/femtomega/imagesource_example.py:36 — Condition will always evaluate to False since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/camera/femtomega/imagesource_example.py:42 — "HEIGHT" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/camera/femtomega/imagesource_example.py:42 — "WIDTH" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/camera/femtomega/imagesource_example.py:43 — "HEIGHT" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/camera/femtomega/imagesource_example.py:43 — "WIDTH" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/camera/fetch_frameset.py:29 — Condition will always evaluate to False since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/frameset.py:419 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/imagefile/filebased_imagesource.py:128 — Condition will always evaluate to True since the types "list[str]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/camera/parameters.py:474 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/camera/parameters.py:477 — "M" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/camera/rest_imagesource.py:22 — Condition will always evaluate to False since the types "bytes" and "None" have no overlap (reportUnnecessaryComparison)

src/camera_tools

  • ConstantRedefinition src/camera_tools/generate_video_from_imagesource_snapshots.py:533 — "H" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/camera_tools/generate_video_from_imagesource_snapshots.py:533 — "W" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)

src/data_engine

  • UnnecessaryComparison src/data_engine/dashboard/image_api.py:61 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/dataset/resolve_rois.py:126 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/dataset/resolve_rois.py:126 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/health_db.py:161 — Condition will always evaluate to False since the types "set[UUID]" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/data_engine/models/matcher.py:93 — "C" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/data_engine/models/matcher.py:158 — "C" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/data_engine/processing/batch_processor.py:265 — Condition will always evaluate to True since the types "PrePostActionFramesetsRow" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/processing/batch_processor.py:266 — Condition will always evaluate to True since the types "PrePostActionLabelingLogRow" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/processing/batch_processor.py:269 — Condition will always evaluate to True since the types "PrePostActionFramesetsRow" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/processing/batch_processor.py:271 — Condition will always evaluate to True since the types "PrePostActionLabelingLogRow" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/data_engine/roi_data_miner/extract_env_data.py:937 — Condition will always evaluate to False since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)

src/deploy

  • UnnecessaryComparison src/deploy/launchers/lumi_ddp.py:816 — Condition will always evaluate to False since the types "bytes" and "None" have no overlap (reportUnnecessaryComparison)

src/devops

  • UnnecessaryComparison src/devops/terraform/common.py:34 — Condition will always evaluate to False since the types "str | PathLike[str]" and "None" have no overlap (reportUnnecessaryComparison)

src/frameset_tools

  • UnnecessaryComparison src/frameset_tools/frameset_display.py:105 — Condition will always evaluate to True since the types "tuple[int, int]" and "None" have no overlap (reportUnnecessaryComparison)

src/hyperstar

  • ConstantRedefinition src/hyperstar/accelerate_patches.py:51 — "_PATCHED" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/hyperstar/autopilot/eval_surrogate.py:108 — Condition will always evaluate to True since the types "float" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/hyperstar/autopilot/eval_surrogate.py:226 — "_X" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/hyperstar/experiment_gui/transform.py:35 — "HAS_DATEUTIL" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/hyperstar/experiments/_registry.py:66 — "_DISCOVERED" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/hyperstar/experiments/lumi_remote_eval_smoke.py:33 — "_REQUEST_TOPIC" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/hyperstar/experiments/lumi_remote_eval_smoke.py:34 — "_RESULT_TOPIC" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/hyperstar/hyperstar_loss_statistics.py:134 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/hyperstar_loss_statistics.py:167 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/hyperstar_loss_statistics.py:279 — Condition will always evaluate to False since the types "DataFrame" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/hyperstar_loss_statistics.py:507 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/hyperstar_trainer.py:380 — Condition will always evaluate to False since the types "Optimizer" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/hyperstar_trainer.py:700 — Condition will always evaluate to False since the types "DataLoader[Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/hyperstar/init.py:450 — "GFX_BACKEND_INITIALIZED" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/hyperstar/intent_editor/auto_intent.py:246 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/intent_editor/auto_intent.py:246 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/intent_editor/auto_intent.py:414 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/intent_editor/auto_intent.py:414 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/intent_editor/auto_intent.py:470 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/intent_editor/services/auto_trim_service.py:265 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/intent_editor/services/auto_trim_service.py:332 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • CallIssue src/hyperstar/intent_editor/services/transcoding_service.py:335 — No overloads for "run" match the provided arguments (reportCallIssue)
  • UnnecessaryComparison src/hyperstar/lerobot_datacleaner/datacleaner.py:596 — Condition will always evaluate to False since the types "int" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/lerobot_support.py:73 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/lerobot_support_code/episode_writer.py:196 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Any]]" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/hyperstar/lerobot_support_code/patch_lerobot.py:61 — "_HYPERSTAR_TYPES_IMPORTED" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/hyperstar/lerobot_support_code/repair_dataset.py:129 — Condition will always evaluate to True since the types "dict[str, Tensor]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperflow.py:385 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperflow.py:392 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperflow.py:501 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperflow.py:545 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperflow.py:557 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperformer.py:116 — Condition will always evaluate to False since the types "Module" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperformer.py:118 — Condition will always evaluate to False since the types "Module" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperformer.py:120 — Condition will always evaluate to False since the types "Module" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/models/hyperformer.py:278 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/hyperstar/models/hyperformer_basic.py:216 — "B" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • UnnecessaryComparison src/hyperstar/models/hyperstar_model.py:1267 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • CallIssue src/hyperstar/robot_control/robots_control_interface.py:202 — No overloads for "join" match the provided arguments (reportCallIssue)
  • UnnecessaryComparison src/hyperstar/robot_data/dataloader.py:506 — Condition will always evaluate to False since the types "Config" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/robot_data/dataloader.py:512 — Condition will always evaluate to False since the types "Literal['training', 'validation']" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/robot_data/dataloader.py:656 — Condition will always evaluate to True since the types "int" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/robot_data/lerobot_dataset.py:665 — Condition will always evaluate to False since the types "Dataset" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/robot_data/lerobot_dataset.py:738 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/robot_data/video_decoder/base_decoder.py:130 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/robot_data/video_decoder/pyav_decoder.py:188 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/run.py:182 — Condition will always evaluate to False since the types "tuple[str, list[str]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/hyperstar/task_definitions.py:147 — Condition will always evaluate to False since the types "list[str]" and "None" have no overlap (reportUnnecessaryComparison)

src/image

  • UnnecessaryComparison src/image/analysis/countcompartments.py:56 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/countcompartments.py:56 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/helper.py:22 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/pickpair.py:82 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/pickpair.py:82 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/pickpair.py:85 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/pickpair.py:85 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/image/analysis/pickpair.py:88 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]] | ndarray[tuple[Any, ...], dtype[Unknown]]" and "None" have no overlap (reportUnneces...
  • UnnecessaryComparison src/image/utils.py:248 — Condition will always evaluate to False since the types "ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)

src/infra

  • UnnecessaryComparison src/infra/google/bigquery.py:258 — Condition will always evaluate to True since the types "RowIterator | _EmptyRowIterator" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/google/load_bq_from_excel.py:64 — Condition will always evaluate to True since the types "list[Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/google/metadataservice.py:109 — Condition will always evaluate to False since the types "RowIterator | _EmptyRowIterator" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/google/metadataservice.py:150 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/google/reporting/mail.py:81 — Condition will always evaluate to False since the types "Credentials" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/google/reporting/mail.py:88 — Condition will always evaluate to False since the types "Credentials" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/slack/main.py:219 — Condition will always evaluate to False since the types "RowIterator | _EmptyRowIterator" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/infra/tracing.py:63 — Condition will always evaluate to False since the types "bool | Logger" and "None" have no overlap (reportUnnecessaryComparison)

src/pap_manual

  • CallIssue src/pap_manual/main.py:407 — Argument expression after ** must be a mapping with a "str" key type (reportCallIssue)

src/pap_rob

  • UnnecessaryComparison src/pap_rob/calibration_handler.py:48 — Condition will always evaluate to False since the types "list[ndarray[tuple[Any, ...], dtype[floating[_32Bit]]] | None]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/calibration_handler.py:406 — Condition will always evaluate to True since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/heuristical_pick_finder.py:181 — Condition will always evaluate to True since the types "list[float]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/heuristical_pick_finder.py:357 — Condition will always evaluate to True since the types "float" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/lessons/nowaste_pick_and_place_lesson.py:238 — Condition will always evaluate to True since the types "RobotController" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/lessons/robot_calibration_lesson.py:102 — Condition will always evaluate to True since the types "RobotController" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/lessons/single_pick_lesson.py:76 — Condition will always evaluate to True since the types "RobotController" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:120 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:165 — Condition will always evaluate to False since the types "list[Frame]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:176 — Condition will always evaluate to False since the types "list[Frame]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:200 — Condition will always evaluate to False since the types "list[Frame]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:206 — Condition will always evaluate to False since the types "Station" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:212 — Condition will always evaluate to False since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:217 — Condition will always evaluate to False since the types "CameraIntrinsics" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:217 — Condition will always evaluate to False since the types "CameraExtrinsics" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:313 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:314 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:356 — Condition will always evaluate to False since the types "Literal['unknown', 'operator-possibly-there', 'ok']" and "Literal['not-set']" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:620 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_api.py:696 — Condition will always evaluate to False since the types "FrameSet" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pap_rob_world.py:156 — Condition will always evaluate to True since the types "BQToFile" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pick_frameset_storage.py:130 — Condition will always evaluate to True since the types "Crop" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pick_instruction_provider.py:430 — Condition will always evaluate to True since the types "XY" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pickjob.py:197 — Condition will always evaluate to True since the types "RobotPickJob" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/pickjob.py:326 — Condition will always evaluate to True since the types "RobotPickJob" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/place_env.py:115 — Condition will always evaluate to True since the types "float | int" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/placement/placement_provider.py:253 — Condition will always evaluate to True since the types "PickTool" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/placement/virtual_placement_image_source.py:47 — Condition will always evaluate to True since the types "RobotPickJob" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/station.py:139 — Condition will always evaluate to False since the types "CameraExtrinsics" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:130 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:257 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:297 — Condition will always evaluate to False since the types "WMSPickJobStatus" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:328 — Condition will always evaluate to False since the types "bool" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:334 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:351 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:366 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_interaction_api.py:381 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_job_manager.py:283 — Condition will always evaluate to False since the types "WMSPickJob" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/pap_rob/wms_job_manager.py:307 — Condition will always evaluate to False since the types "WMSPickJob" and "None" have no overlap (reportUnnecessaryComparison)

src/robots

  • UnnecessaryComparison src/robots/core/robot_controller.py:337 — Condition will always evaluate to False since the types "Orderline" and "None" have no overlap (reportUnnecessaryComparison)
  • IndexIssue src/robots/impl/hkm/hkm_robot_sim.py:268 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue src/robots/impl/hkm/hkm_robot_sim.py:268 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue src/robots/impl/hkm/hkm_robot_sim.py:268 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue src/robots/impl/hkm/hkm_robot_sim.py:269 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue src/robots/impl/hkm/hkm_robot_sim.py:269 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue src/robots/impl/hkm/hkm_robot_sim.py:269 — "getitem" method not defined on type "int" (reportIndexIssue)
  • UnnecessaryComparison src/robots/impl/hkm/opcua/opcua.py:473 — Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/hkm/opcua/opcua.py:706 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/hkm/opcua/opcua_client.py:162 — Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/hkm/opcua/opcua_recorder.py:351 — Condition will always evaluate to False since the types "tuple[datetime, datetime]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/hkm/opcua/opcua_recorder.py:500 — Condition will always evaluate to False since the types "datetime" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/kuka/ads/network/pyads_bugfixes.py:157 — Condition will always evaluate to False since the types "type[Type[Unknown]]" and "type[tuple[Unknown, ...]]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/kuka/ads/network/pyads_bugfixes.py:219 — Condition will always evaluate to False since the types "type[Type[Unknown]]" and "type[tuple[Unknown, ...]]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/kuka/ads/network/pyads_bugfixes.py:257 — Condition will always evaluate to False since the types "type[Type[Unknown]] | type[type[c_int32]] | type[type[c_float]] | type[type[c_int16]] | type[type[c_uint16]]" and "type[tuple[Unknown, ...]]...
  • UnnecessaryComparison src/robots/impl/kuka/ads/network/pyads_bugfixes.py:310 — Condition will always evaluate to False since the types "type[Type[Unknown]]" and "type[tuple[Unknown, ...]]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/kuka/ads/network/pyads_bugfixes.py:381 — Condition will always evaluate to False since the types "type[Type[Unknown]]" and "type[tuple[Unknown, ...]]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/robots/impl/kuka/ads/network/pyads_bugfixes.py:434 — Condition will always evaluate to False since the types "type[Type[Unknown]] | type[type[c_int32]] | type[type[c_float]] | type[type[c_int16]] | type[type[c_uint16]]" and "type[tuple[Unknown, ...]]...
  • UnnecessaryComparison src/robots/impl/kuka/kuka_robot_sim.py:317 — Condition will always evaluate to False since the types "PLCVariable" and "None" have no overlap (reportUnnecessaryComparison)

src/simulation

  • UnnecessaryComparison src/simulation/mujoco_sim/robotics.py:595 — Condition will always evaluate to True since the types "str | " and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/simulation/roboception.py:599 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/simulation/sim_service/grpc_robot_cell_pool.py:106 — Condition will always evaluate to True since the types "StatusCode" and "None" have no overlap (reportUnnecessaryComparison)

src/synq_api

  • UnnecessaryComparison src/synq_api/main.py:558 — Condition will always evaluate to False since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/synq_api/session.py:53 — Condition will always evaluate to False since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition src/synq_api/sics_api_calls.py:55 — "SICS_API_IP" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/synq_api/sics_api_calls.py:55 — "SICS_API_PORT" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition src/synq_api/sics_api_calls.py:113 — "LAST_PREANNOUNCE_DICT" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)

src/utils

  • UnnecessaryComparison src/utils/config/config.py:163 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/utils/eventloop.py:42 — Condition will always evaluate to False since the types "AbstractEventLoop" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/utils/memory.py:220 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[Any, ...], dtype[Any]]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison src/utils/memory.py:238 — Condition will always evaluate to True since the types "ndarray[tuple[Any, ...], dtype[Unknown]] | ndarray[tuple[Any, ...], dtype[Any]]" and "None" have no overlap (reportUnnecessaryComparison)

src/viz_server

  • UnnecessaryComparison src/viz_server/product_classification.py:107 — Condition will always evaluate to False since the types "dict[Unknown, Unknown]" and "None" have no overlap (reportUnnecessaryComparison)

tests/integration

  • UnnecessaryComparison tests/integration/data_engine/data_engine_db_test.py:704 — Condition will always evaluate to False since the types "RowIterator | _EmptyRowIterator" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/helpers/history_usage_helpers.py:960 — Condition will always evaluate to False since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/joint_discretization/discretizer_test.py:241 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/multi_iteration_sampling_test.py:97 — Condition will always evaluate to True since the types "Literal[2]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/multi_iteration_sampling_test.py:110 — Condition will always evaluate to False since the types "Literal[1]" and "Literal[0]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/multi_iteration_sampling_test.py:110 — Condition will always evaluate to True since the types "Literal[2]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/multi_iteration_sampling_test.py:239 — Condition will always evaluate to True since the types "int" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/multi_iteration_sampling_test.py:264 — Condition will always evaluate to True since the types "Literal[2]" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/training_prefill_test.py:100 — Condition will always evaluate to True since the types "Literal[5]" and "Literal['none']" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/training_prefill_test.py:149 — Condition will always evaluate to False since the types "Literal[1]" and "Literal[0]" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/training_prefill_test.py:149 — Condition will always evaluate to True since the types "Literal[5]" and "Literal['none']" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/training_prefill_test.py:184 — Condition will always evaluate to True since the types "Literal[5]" and "Literal['none']" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/integration/hyperstar/model_integration/training_prefill_test.py:220 — Condition will always evaluate to True since the types "int" and "Literal['none']" have no overlap (reportUnnecessaryComparison)
  • ArgumentType tests/integration/pap_rob/pick_overlay_test.py:170 — Argument of type "list[str | Unknown | list[int | float] | list[float]]" cannot be assigned to parameter "ids" of type "Iterable[str | float | int | bool | None] | ((Any) -> (object | None)) | None...
  • IndexIssue tests/integration/pap_rob/pick_overlay_test.py:170 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue tests/integration/pap_rob/pick_overlay_test.py:170 — "getitem" method not defined on type "float" (reportIndexIssue)

tests/unit

  • UnnecessaryComparison tests/unit/hyperstar/joint_discretization/discretizer_test.py:183 — Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
  • UnnecessaryComparison tests/unit/hyperstar/models/low_confidence_remasking_test.py:192 — Condition will always evaluate to True since the types "Tensor" and "None" have no overlap (reportUnnecessaryComparison)
  • ConstantRedefinition tests/unit/image/transformers/hue_transformer_test.py:57 — "C" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition tests/unit/image/transformers/hue_transformer_test.py:57 — "H" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • ConstantRedefinition tests/unit/image/transformers/hue_transformer_test.py:57 — "W" is constant (because it is uppercase) and cannot be redefined (reportConstantRedefinition)
  • IndexIssue tests/unit/pap_rob/models_test.py:159 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue tests/unit/pap_rob/models_test.py:159 — "getitem" method not defined on type "float" (reportIndexIssue)
  • IndexIssue tests/unit/pap_rob/models_test.py:159 — "getitem" method not defined on type "bool" (reportIndexIssue)
  • IndexIssue tests/unit/pap_rob/models_test.py:160 — "getitem" method not defined on type "int" (reportIndexIssue)
  • IndexIssue tests/unit/pap_rob/models_test.py:160 — "getitem" method not defined on type "float" (reportIndexIssue)
  • IndexIssue tests/unit/pap_rob/models_test.py:160 — "getitem" method not defined on type "bool" (reportIndexIssue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment