Created
May 7, 2024 08:06
-
-
Save lagergren/b45d8de5ef0c828a49a542d58396d6dc to your computer and use it in GitHub Desktop.
Same version of pyright as ci.yml, but still get errors in master when running locally
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src/zombiesnack compose-cleanup *1 !4 ?1 ❯ time pyright х INT Py thaum marcus@thaum 10:04:55 | |
WARNING: there is a new pyright version available (v1.1.359 -> v1.1.361). | |
Please install the new version or set PYRIGHT_PYTHON_FORCE_VERSION to `latest` | |
/home/marcus/src/zombiesnack/src/camera/femtomega/camerasettings.py | |
/home/marcus/src/zombiesnack/src/camera/femtomega/camerasettings.py:23:12 - error: Operator "/" not supported for types "MatLike" and "int" | |
Operator "/" not supported for types "NumPyArrayGeneric" and "int" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/hyperformer/hyper_aloha/hyperspace_aloha.py | |
/home/marcus/src/zombiesnack/src/hyperformer/hyper_aloha/hyperspace_aloha.py:322:20 - error: Operator "|" not supported for types "dict[str, Any]" and "Unknown | dict[Unknown, Unknown] | list[Unknown] | tuple[Unknown, ...] | Any" | |
Operator "|" not supported for types "dict[str, Any]" and "list[Unknown]" when expected type is "dict[Unknown, Unknown]" | |
Operator "|" not supported for types "dict[str, Any]" and "tuple[Unknown, ...]" when expected type is "dict[Unknown, Unknown]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/hyperformer/hyper_aloha/hyperspace_aloha.py:353:20 - error: Operator "|" not supported for types "dict[str, Any]" and "Unknown | dict[Unknown, Unknown] | list[Unknown] | tuple[Unknown, ...] | Any" | |
Operator "|" not supported for types "dict[str, Any]" and "list[Unknown]" when expected type is "dict[Unknown, Unknown]" | |
Operator "|" not supported for types "dict[str, Any]" and "tuple[Unknown, ...]" when expected type is "dict[Unknown, Unknown]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/hyperformer/hyper_aloha/model.py | |
/home/marcus/src/zombiesnack/src/hyperformer/hyper_aloha/model.py:819:18 - error: "VideoWriter_fourcc" is not a known attribute of module "cv2" (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/countcompartments.py | |
/home/marcus/src/zombiesnack/src/imageanalysis/countcompartments.py:179:17 - error: "InputArrayOfArrays" is not a known attribute of module "cv2" (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:81:17 - error: Operator "*" not supported for types "MatLike" and "Literal[3]" | |
Operator "*" not supported for types "NumPyArrayGeneric" and "Literal[3]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:140:24 - error: Operator "-" not supported for types "ndarray[Any, dtype[generic]]" and "ndarray[Any, dtype[generic]]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:141:15 - error: Operator "-" not supported for types "ndarray[Any, dtype[generic]]" and "ndarray[Any, dtype[generic]]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:159:16 - error: Operator ">" not supported for types "MatLike" and "int" | |
Operator ">" not supported for types "NumPyArrayGeneric" and "int" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:203:46 - error: "InputArrayOfArrays" is not a known attribute of module "cv2" (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:203:79 - error: Operator "//" not supported for types "MatLike" and "Literal[2]" | |
Operator "//" not supported for types "NumPyArrayGeneric" and "Literal[2]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:203:96 - error: Operator "//" not supported for types "MatLike" and "Literal[2]" | |
Operator "//" not supported for types "NumPyArrayGeneric" and "Literal[2]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:206:45 - error: No overloads for "mean" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/pickpair.py:206:53 - error: Argument of type "MatLike" cannot be assigned to parameter "a" of type "_ArrayLikeComplex_co | _ArrayLikeObject_co" in function "mean" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:17:37 - error: Operator "*" not supported for types "float" and "MatLike" | |
Operator "*" not supported for types "float" and "NumPyArrayGeneric" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:60:27 - error: Operator "*" not supported for types "ndarray[Any, dtype[generic]]" and "float" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:75:27 - error: Operator "*" not supported for types "ndarray[Any, dtype[generic]]" and "float" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:76:19 - error: Operator "*" not supported for types "ndarray[Any, dtype[generic]]" and "float" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:109:17 - error: No overloads for "mean" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:109:25 - error: Argument of type "MatLike" cannot be assigned to parameter "a" of type "_ArrayLikeComplex_co | _ArrayLikeObject_co" in function "mean" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:121:5 - error: Operator "*=" not supported for types "ndarray[Any, dtype[generic]]" and "float" | |
Operator "*" not supported for types "ndarray[Any, dtype[generic]]" and "float" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/imageanalysis/visuallyenhance.py:125:12 - error: Operator "*" not supported for types "MatLike" and "Literal[255]" | |
Operator "*" not supported for types "NumPyArrayGeneric" and "Literal[255]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/infra/api_server.py | |
/home/marcus/src/zombiesnack/src/infra/api_server.py:246:18 - error: Import "paste" could not be resolved (reportMissingImports) | |
/home/marcus/src/zombiesnack/src/infra/api_server.py:247:18 - error: Import "paste.translogger" could not be resolved (reportMissingImports) | |
/home/marcus/src/zombiesnack/src/pap_rob/motion_detector.py | |
/home/marcus/src/zombiesnack/src/pap_rob/motion_detector.py:126:16 - error: No overloads for "calcOpticalFlowFarneback" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/motion_detector.py:126:59 - error: Argument of type "None" cannot be assigned to parameter "flow" of type "MatLike" in function "calcOpticalFlowFarneback" | |
Type "None" is incompatible with type "MatLike" | |
"None" is incompatible with "Mat" | |
"None" is incompatible with "NumPyArrayGeneric" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pap_rob_world_commons.py | |
/home/marcus/src/zombiesnack/src/pap_rob/pap_rob_world_commons.py:73:57 - error: Cannot assign to attribute "override_camera_box_region" for class "PickAndPlaceConfig" | |
Type "Unknown | Munch | list[Unknown] | tuple[Unknown, ...] | Any" is incompatible with type "dict[str, int]" | |
"list[Unknown]" is incompatible with "dict[str, int]" (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pap_rob_world_commons.py:77:57 - error: Cannot assign to attribute "override_camera_box_region" for class "PickAndPlaceConfig" | |
Type "Unknown | Munch | list[Unknown] | tuple[Unknown, ...] | Any" is incompatible with type "dict[str, int]" | |
"list[Unknown]" is incompatible with "dict[str, int]" (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pap_rob_world_commons.py:82:57 - error: Cannot assign to attribute "override_camera_box_region" for class "PickAndPlaceConfig" | |
Type "Unknown | Munch | list[Unknown] | tuple[Unknown, ...] | Any" is incompatible with type "dict[str, int]" | |
"list[Unknown]" is incompatible with "dict[str, int]" (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:562:9 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:562:68 - error: Argument of type "Literal[255]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[255]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:961:9 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:961:52 - error: Argument of type "Literal[255]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[255]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:967:30 - error: No overloads for "median" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:967:40 - error: Argument of type "ndarray[Any, dtype[generic]]" cannot be assigned to parameter "a" of type "_ArrayLikeFloat_co | _ArrayLikeComplex_co | _ArrayLikeTD64_co | _ArrayLikeObject_co" in function "median" | |
Type "ndarray[Any, dtype[generic]]" is incompatible with type "_ArrayLikeFloat_co | _ArrayLikeComplex_co | _ArrayLikeTD64_co | _ArrayLikeObject_co" | |
"ndarray[Any, dtype[generic]]" is incompatible with protocol "_SupportsArray[dtype[bool_ | integer[Any] | floating[Any]]]" | |
"__array__" is an incompatible type | |
No overloaded function matches type "() -> ndarray[Any, _DType_co@_SupportsArray]" | |
"ndarray[Any, dtype[generic]]" is incompatible with protocol "_NestedSequence[_SupportsArray[dtype[bool_ | integer[Any] | floating[Any]]]]" | |
"__reversed__" is not present | |
"count" is not present | |
"index" is not present | |
... (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:967:62 - error: Operator ">" not supported for types "MatLike" and "Literal[0]" | |
Operator ">" not supported for types "NumPyArrayGeneric" and "Literal[0]" (reportOperatorIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1573:22 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1573:60 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1577:29 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1577:87 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1696:9 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1696:60 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1717:9 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1717:60 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1731:30 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/pick_finder.py:1731:65 - error: Argument of type "Literal[0]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[0]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:100:5 - error: No overloads for "fillPoly" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:100:45 - error: Argument of type "NDArray[int32]" cannot be assigned to parameter "pts" of type "Sequence[MatLike]" in function "fillPoly" | |
"NDArray[int32]" is incompatible with "Sequence[MatLike]" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:100:97 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "fillPoly" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:103:9 - error: No overloads for "fillPoly" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:103:49 - error: Argument of type "NDArray[int32]" cannot be assigned to parameter "pts" of type "Sequence[MatLike]" in function "fillPoly" | |
"NDArray[int32]" is incompatible with "Sequence[MatLike]" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:103:101 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "fillPoly" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:141:17 - error: No overloads for "fillPoly" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/camera/aruco.py:141:88 - error: Argument of type "Literal[255]" cannot be assigned to parameter "color" of type "Scalar" in function "fillPoly" | |
"Literal[255]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/imagesources/local_rosbags_image_source.py | |
/home/marcus/src/zombiesnack/src/pap_rob/imagesources/local_rosbags_image_source.py:54:58 - error: Cannot access attribute "data" for class "object" | |
Attribute "data" is unknown (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/imagesources/local_rosbags_image_source.py:59:59 - error: Cannot access attribute "data" for class "object" | |
Attribute "data" is unknown (reportAttributeAccessIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py:120:5 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py:120:91 - error: Argument of type "Literal[100]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[100]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py:121:5 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py:121:78 - error: Argument of type "Literal[150]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[150]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py:122:5 - error: No overloads for "drawContours" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/pap_rob/placement/utils.py:122:75 - error: Argument of type "Literal[255]" cannot be assigned to parameter "color" of type "Scalar" in function "drawContours" | |
"Literal[255]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/utils/config.py | |
/home/marcus/src/zombiesnack/src/utils/config.py:489:16 - error: Expression of type "Unknown | Munch | list[Unknown] | tuple[Unknown, ...] | Any" is incompatible with return type "Munch" | |
Type "Unknown | Munch | list[Unknown] | tuple[Unknown, ...] | Any" is incompatible with type "Munch" | |
"list[Unknown]" is incompatible with "Munch" (reportReturnType) | |
/home/marcus/src/zombiesnack/src/utils/config.py:533:22 - error: Expression of type "Unknown | Munch | list[Unknown] | tuple[Unknown, ...] | Any" is incompatible with declared type "Munch | None" (reportAssignmentType) | |
/home/marcus/src/zombiesnack/src/utils/config.py:534:12 - error: Expression of type "Munch | None" is incompatible with return type "Munch" | |
Type "Munch | None" is incompatible with type "Munch" | |
"None" is incompatible with "Munch" (reportReturnType) | |
/home/marcus/src/zombiesnack/src/utils/frameset_utils.py | |
/home/marcus/src/zombiesnack/src/utils/frameset_utils.py:563:19 - error: Expression of type "MatLike" is incompatible with declared type "Mat" | |
Type "MatLike" is incompatible with type "Mat" | |
"NumPyArrayGeneric" is incompatible with "Mat" (reportAssignmentType) | |
/home/marcus/src/zombiesnack/src/utils/tapo_light_bulb_control.py | |
/home/marcus/src/zombiesnack/src/utils/tapo_light_bulb_control.py:31:14 - error: Import "plugp100.api.light_device" could not be resolved (reportMissingImports) | |
/home/marcus/src/zombiesnack/src/utils/visualize.py | |
/home/marcus/src/zombiesnack/src/utils/visualize.py:224:9 - error: No overloads for "circle" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/utils/visualize.py:224:44 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "circle" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/utils/visualize.py:229:13 - error: No overloads for "arrowedLine" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/utils/visualize.py:229:71 - error: Argument of type "float" cannot be assigned to parameter "color" of type "Scalar" in function "arrowedLine" | |
"float" is incompatible with "Scalar" (reportArgumentType) | |
/home/marcus/src/zombiesnack/src/utils/visualize.py:261:9 - error: No overloads for "fillPoly" match the provided arguments (reportCallIssue) | |
/home/marcus/src/zombiesnack/src/utils/visualize.py:261:86 - error: Argument of type "Literal[1]" cannot be assigned to parameter "color" of type "Scalar" in function "fillPoly" | |
"Literal[1]" is incompatible with "Scalar" (reportArgumentType) | |
73 errors, 0 warnings, 0 informations | |
pyright 55.37s user 1.54s system 216% cpu 26.333 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment