-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't report unknown/any errors when casting #511
Merged
Merged
Conversation
This file contains 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
DetachHead
force-pushed
the
allow-any-when-casting
branch
from
July 20, 2024 11:57
79af1da
to
88cbfa6
Compare
This comment has been minimized.
This comment has been minimized.
DetachHead
force-pushed
the
allow-any-when-casting
branch
from
July 20, 2024 12:44
88cbfa6
to
68bbe53
Compare
Diff from mypy_primer, showing the effect of this PR on open source code: nionutils (https://github.com/nion-software/nionutils)
- /tmp/mypy_primer/projects/nionutils/nion/utils/StructuredModel.py:124:43 - error: Type of "value" is Any (reportAny)
- Type of "__field_models" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/nionutils/nion/utils/StructuredModel.py:227:37 - error: Type of "__field_models" is partially unknown
- 1446 errors, 0 warnings, 0 notes
+ 1444 errors, 0 warnings, 0 notes
pytest-robotframework (https://github.com/detachhead/pytest-robotframework)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/pytest/xdist_utils.py:24:13 - error: Type of "numprocesses" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:158:80 - error: Type of "args" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:306:63 - error: Type of "nextitem" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:375:78 - error: Type of "nextitem" is unknown (reportUnknownMemberType)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/listeners_and_suite_visitors.py:418:64 - error: Unnecessary "# pyright: ignore" rule: "reportAny" (reportUnnecessaryTypeIgnoreComment)
+ /tmp/mypy_primer/projects/pytest-robotframework/pytest_robotframework/_internal/robot/utils.py:158:55 - error: Unnecessary "# pyright: ignore" rule: "reportUnknownMemberType" (reportUnnecessaryTypeIgnoreComment)
+ /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:48:59 - error: Unnecessary "# pyright: ignore" rule: "reportUnknownMemberType" (reportUnnecessaryTypeIgnoreComment)
- /tmp/mypy_primer/projects/pytest-robotframework/tests/conftest.py:53:43 - error: Type of "module" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pytest-robotframework/tests/test_robot.py:219:22 - error: Type of "attrib" is unknown (reportUnknownMemberType)
- 2198 errors, 0 warnings, 0 notes
+ 2195 errors, 0 warnings, 0 notes
anyio (https://github.com/agronholm/anyio)
- /tmp/mypy_primer/projects/anyio/src/anyio/_backends/_asyncio.py:314:39 - error: Type of "_host_task" is partially unknown
- Type of "_host_task" is "Task[Unknown] | None" (reportUnknownMemberType)
- 1560 errors, 0 warnings, 0 notes
+ 1559 errors, 0 warnings, 0 notes
artigraph (https://github.com/artigraph/artigraph)
- /tmp/mypy_primer/projects/artigraph/src/arti/internal/models.py:101:41 - error: Type of "annotation" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/producers/__init__.py:147:44 - error: Type of "annotation" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/artigraph/src/arti/types/numpy.py:39:36 - error: Type of "system" is Any (reportAny)
- /tmp/mypy_primer/projects/artigraph/tests/arti/storage/test_storage.py:183:69 - error: Type of "storage_partition" is unknown (reportUnknownMemberType)
- 3494 errors, 0 warnings, 0 notes
+ 3490 errors, 0 warnings, 0 notes
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
- /tmp/mypy_primer/projects/SinbadCogs/relays/helpers.py:52:41 - error: Type of "channel" is unknown (reportUnknownMemberType)
- 6750 errors, 0 warnings, 0 notes
+ 6749 errors, 0 warnings, 0 notes
poetry (https://github.com/python-poetry/poetry)
- /tmp/mypy_primer/projects/poetry/src/poetry/console/application.py:194:39 - error: Type of "input" is unknown (reportUnknownMemberType)
- 21144 errors, 0 warnings, 0 notes
+ 21143 errors, 0 warnings, 0 notes
sympy (https://github.com/sympy/sympy)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/toperators.py:144:9 - error: Method "doit" overrides class "Basic" in an incompatible manner
- Return type mismatch: base method returns type "Self@Basic", override returns type "PartialDerivative"
- Type "PartialDerivative" is incompatible with type "Self@Basic" (reportIncompatibleMethodOverride)
- Return type mismatch: base method returns type "Self@TensExpr", override returns type "Unknown | TensAdd | TensMul | PartialDerivative"
+ Return type mismatch: base method returns type "PartialDerivative", override returns type "Unknown | TensAdd | TensMul | PartialDerivative"
- Type "Unknown | TensAdd | TensMul | PartialDerivative" is incompatible with type "Self@TensExpr" (reportIncompatibleMethodOverride)
+ Type "Unknown | TensAdd | TensMul | PartialDerivative" is incompatible with type "PartialDerivative"
+ "TensAdd" is incompatible with "PartialDerivative" (reportIncompatibleMethodOverride)
- Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+ Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
- Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+ Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
- Return type mismatch: base method returns type "Self@Basic", override returns type "ArrayComprehension | ImmutableDenseNDimArray"
+ Return type mismatch: base method returns type "ArrayComprehension", override returns type "ArrayComprehension | ImmutableDenseNDimArray"
+ Type "ArrayComprehension | ImmutableDenseNDimArray" is incompatible with type "ArrayComprehension"
- Type "ArrayComprehension | ImmutableDenseNDimArray" is incompatible with type "Self@Basic" (reportIncompatibleMethodOverride)
+ "ImmutableDenseNDimArray" is incompatible with "ArrayComprehension" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/array_comprehension.py:387:9 - error: "func" incorrectly overrides property of same name in class "Basic"
- Property method "fget" is incompatible
- Return type mismatch: base method returns type "type[Self@Basic]", override returns type "type[_]"
- Type "type[_]" is incompatible with type "type[Self@Basic]" (reportIncompatibleMethodOverride)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:25:5 - error: Return type, "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:25:5 - error: Return type, "Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:71:16 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:71:16 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:215:5 - error: Return type, "Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray", is partially unknown (reportUnknownParameterType)
- Type of "_array_diagonal" is "(expr: Unknown, ...) -> (Unknown | ZeroArray | ArrayDiagonal)" (reportUnknownVariableType)
+ Type of "_array_diagonal" is "(expr: Unknown, ...) -> ArrayDiagonal" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/arrayop.py:269:16 - error: Return type, "Unknown | ZeroArray | ArrayDiagonal", is partially unknown (reportUnknownVariableType)
- Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (Unknown | ZeroArray | ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
+ Type of "tensordiagonal" is "(array: Unknown, *diagonal_axes: Unknown) -> (ArrayDiagonal | Any | ImmutableDenseNDimArray)" (reportUnknownVariableType)
- Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
+ Type of "tensorproduct" is "(*args: Unknown) -> (Unknown | NDimArray | ImmutableDenseNDimArray | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | ImmutableSparseNDimArray* | ImmutableDenseNDimArray* | ImmutableSparseNDimArray)" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:237:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray", is partially unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:253:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray", is partially unknown (reportUnknownParameterType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:256:9 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims | Self@ArrayTensorProduct", is partially unknown (reportUnknownParameterType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:258:9 - error: Type of "args" is partially unknown
+ Type of "args" is "list[Basic | Unknown]" (reportUnknownVariableType)
- Type of "_flatten" is "(args: Unknown) -> Unknown" (reportUnknownMemberType)
+ Type of "_flatten" is "(args: Unknown) -> list[Basic | Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:27 - error: Argument type is unknown
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is partially unknown
+ Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
- Argument corresponds to parameter "expr" in function "get_rank" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:260:36 - error: Type of "arg" is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is unknown (reportUnknownVariableType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:16 - error: Type of "arg" is partially unknown
+ Type of "arg" is "Basic | Unknown" (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is unknown
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:264:33 - error: Argument type is partially unknown
- Argument corresponds to parameter "iterable" in function "__new__" (reportUnknownArgumentType)
+ Argument corresponds to parameter "iterable" in function "__new__"
+ Argument type is "list[Basic | Unknown]" (reportUnknownArgumentType)
+ /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type, "Unknown | ZeroArray | ArrayTensorProduct | ArrayContraction | Basic | ArrayDiagonal | ArrayAdd | PermuteDims", is partially unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:20 - error: Return type is unknown (reportUnknownVariableType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:34 - error: Argument type is unknown
- Argument corresponds to parameter "expr" in function "_permute_dims" (reportUnknownArgumentType)
- /tmp/mypy_primer/projects/sympy/sympy/tensor/array/expressions/array_expressions.py:270:57 - error: Argument type is unknown
... (truncated 1160 lines) ...
check-jsonschema (https://github.com/python-jsonschema/check-jsonschema)
- /tmp/mypy_primer/projects/check-jsonschema/src/check_jsonschema/schema_loader/readers.py:52:29 - error: Type of "_parsed_schema" is partially unknown
- Type of "_parsed_schema" is "dict[Unknown, Unknown] | _UnsetType" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/check-jsonschema/src/check_jsonschema/schema_loader/readers.py:69:29 - error: Type of "_parsed_schema" is partially unknown
- Type of "_parsed_schema" is "dict[Unknown, Unknown] | _UnsetType" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/check-jsonschema/src/check_jsonschema/schema_loader/readers.py:101:29 - error: Type of "_parsed_schema" is partially unknown
- Type of "_parsed_schema" is "dict[Unknown, Unknown] | _UnsetType" (reportUnknownMemberType)
- 602 errors, 0 warnings, 0 notes
+ 599 errors, 0 warnings, 0 notes
cloud-init (https://github.com/canonical/cloud-init)
- /tmp/mypy_primer/projects/cloud-init/cloudinit/sources/DataSourceLXD.py:271:27 - error: Type of "_network_config" is partially unknown
- Type of "_network_config" is "Dict[Unknown, Unknown] | Unknown | str" (reportUnknownMemberType)
- 64684 errors, 0 warnings, 0 notes
+ 64683 errors, 0 warnings, 0 notes
pyodide (https://github.com/pyodide/pyodide)
- /tmp/mypy_primer/projects/pyodide/pyodide-build/pyodide_build/buildpkg.py:302:25 - error: Type of "url" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pyodide/pyodide-build/pyodide_build/buildpkg.py:491:19 - error: Type of "url" is unknown (reportUnknownMemberType)
- 9975 errors, 0 warnings, 0 notes
+ 9973 errors, 0 warnings, 0 notes
PyWinCtl (https://github.com/Kalmat/PyWinCtl)
- /tmp/mypy_primer/projects/PyWinCtl/src/pywinctl/_pywinctl_linux.py:728:32 - error: Type of "children" is Any (reportAny)
- 1299 errors, 0 warnings, 0 notes
+ 1298 errors, 0 warnings, 0 notes
sphinx (https://github.com/sphinx-doc/sphinx)
- /tmp/mypy_primer/projects/sphinx/sphinx/directives/other.py:364:42 - error: Type of "parent" is Any (reportAny)
- /tmp/mypy_primer/projects/sphinx/sphinx/ext/autodoc/type_comment.py:97:34 - error: Type of "body" is unknown (reportUnknownMemberType)
- 12974 errors, 0 warnings, 0 notes
+ 12972 errors, 0 warnings, 0 notes
aiortc (https://github.com/aiortc/aiortc)
- /tmp/mypy_primer/projects/aiortc/src/aiortc/codecs/vpx.py:213:52 - error: Type of "planes" is unknown (reportUnknownMemberType)
- 2830 errors, 0 warnings, 0 notes
+ 2829 errors, 0 warnings, 0 notes
pydantic (https://github.com/pydantic/pydantic)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:77:64 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:80:62 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:121:64 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:124:62 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:171:64 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:176:62 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:224:68 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/functional_validators.py:227:66 - error: Type of "func" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/types.py:1217:65 - error: Type of "validate_file" is partially unknown
- Type of "validate_file" is "(path: Path, _: Unknown) -> Path" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/types.py:1218:64 - error: Type of "validate_directory" is partially unknown
- Type of "validate_directory" is "(path: Path, _: Unknown) -> Path" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pydantic/pydantic/types.py:1219:64 - error: Type of "validate_new" is partially unknown
- Type of "validate_new" is "(path: Path, _: Unknown) -> Path" (reportUnknownMemberType)
- 6101 errors, 0 warnings, 0 notes
+ 6090 errors, 0 warnings, 0 notes
pandera (https://github.com/pandera-dev/pandera)
- /tmp/mypy_primer/projects/pandera/pandera/decorators.py:614:41 - error: Type of "arg" is partially unknown
- Type of "arg" is "Unknown | type[Any] | Type[Unknown] | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pandera/pandera/decorators.py:622:49 - error: Type of "arg" is partially unknown
- Type of "arg" is "Unknown | type[Any] | Type[Unknown] | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pandera/pandera/mypy.py:97:44 - error: Type of "node" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pandera/pandera/mypy.py:101:38 - error: Type of "arg_types" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/pandera/pandera/engines/pandas_engine.py:599:42 - error: Type of "NA" is unknown (reportUnknownMemberType)
- 31741 errors, 0 warnings, 0 notes
+ 31736 errors, 0 warnings, 0 notes
scrapy (https://github.com/scrapy/scrapy)
- /tmp/mypy_primer/projects/scrapy/scrapy/middleware.py:112:61 - error: Type of "methods" is partially unknown
- Type of "methods" is "Dict[str, Deque[((...) -> Unknown) | Tuple[(...) -> Unknown, (...) -> Unknown] | None]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/scrapy/scrapy/middleware.py:118:60 - error: Type of "methods" is partially unknown
- Type of "methods" is "Dict[str, Deque[((...) -> Unknown) | Tuple[(...) -> Unknown, (...) -> Unknown] | None]]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/scrapy/scrapy/commands/crawl.py:36:27 - error: Type of "result" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/scrapy/scrapy/core/spidermw.py:181:73 - error: Type of "result" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:164:38 - error: Type of "meta" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/scrapy/scrapy/spiders/crawl.py:166:53 - error: Type of "errback" is partially unknown
- Type of "errback" is "((Unknown) -> Any) | str | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/scrapy/scrapy/utils/testproc.py:64:49 - error: Type of "value" is unknown (reportUnknownMemberType)
- 27911 errors, 0 warnings, 0 notes
+ 27904 errors, 0 warnings, 0 notes
core (https://github.com/home-assistant/core)
- /tmp/mypy_primer/projects/core/homeassistant/components/abode/binary_sensor.py:52:27 - error: Type of "is_on" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/abode/camera.py:119:27 - error: Type of "is_on" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/abode/sensor.py:46:45 - error: Type of "temp" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/abode/sensor.py:52:45 - error: Type of "humidity" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/abode/sensor.py:58:45 - error: Type of "lux" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/abode/switch.py:59:27 - error: Type of "is_on" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/assist_pipeline/vad.py:68:27 - error: Type of "is_speech" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/asuswrt/bridge.py:192:27 - error: Type of "is_connected" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/asuswrt/bridge.py:323:27 - error: Type of "is_connected" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/binary_sensor.py:36:51 - error: Type of "fan_occupancy_detected" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:40:50 - error: Type of "comfort_min_speed" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:50:50 - error: Type of "comfort_max_speed" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:60:50 - error: Type of "comfort_heat_assist_speed" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:74:50 - error: Type of "return_to_auto_timeout" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:85:50 - error: Type of "motion_sense_timeout" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:99:50 - error: Type of "light_return_to_auto_timeout" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/number.py:110:50 - error: Type of "light_auto_motion_timeout" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/sensor.py:45:52 - error: Type of "temperature" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/sensor.py:55:52 - error: Type of "humidity" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/sensor.py:66:50 - error: Type of "current_rpm" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/sensor.py:74:50 - error: Type of "target_rpm" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/sensor.py:81:50 - error: Type of "wifi_ssid" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/sensor.py:88:50 - error: Type of "ip_address" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:34:51 - error: Type of "legacy_ir_remote_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:40:51 - error: Type of "led_indicators_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:49:51 - error: Type of "comfort_heat_assist_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:58:51 - error: Type of "fan_beep_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:64:51 - error: Type of "eco_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:70:51 - error: Type of "motion_sense_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:76:51 - error: Type of "return_to_auto_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:82:51 - error: Type of "whoosh_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:92:51 - error: Type of "light_dim_to_warm_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/baf/switch.py:98:51 - error: Type of "light_return_to_auto_enable" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/balboa/fan.py:48:35 - error: Type of "index" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/balboa/light.py:41:35 - error: Type of "index" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/bang_olufsen/media_player.py:272:46 - error: Type of "items" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/bthome/sensor.py:384:31 - error: Type of "native_value" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/crownstone/listeners.py:114:39 - error: Type of "switchState" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/electric_kiwi/api.py:33:26 - error: Type of "token" is partially unknown
- Type of "token" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/evil_genius_labs/coordinator.py:41:26 - error: Type of "data" is partially unknown
- Type of "data" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/evil_genius_labs/coordinator.py:49:26 - error: Type of "product" is partially unknown
- Type of "product" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/evil_genius_labs/light.py:55:26 - error: Type of "data" is partially unknown
- Type of "data" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/evil_genius_labs/light.py:60:26 - error: Type of "data" is partially unknown
- Type of "data" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/evil_genius_labs/light.py:78:13 - error: Type of "data" is partially unknown
- Type of "data" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/flux_led/number.py:98:28 - error: Type of "speed" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/fritzbox_callmonitor/sensor.py:211:44 - error: Type of "connection" is partially unknown
- Type of "connection" is "Unknown | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/geocaching/sensor.py:97:45 - error: Type of "reference_code" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/goalzero/binary_sensor.py:62:27 - error: Type of "data" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/goalzero/sensor.py:148:32 - error: Type of "data" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/goalzero/switch.py:47:27 - error: Type of "data" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/google/api.py:225:26 - error: Type of "token" is partially unknown
- Type of "token" is "dict[Unknown, Unknown]" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/group/config_flow.py:345:17 - error: Type of "schema" is partially unknown
- Type of "schema" is "Unknown | ((SchemaCommonFlowHandler) -> Coroutine[Any, Any, Unknown | None]) | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/group/config_flow.py:384:35 - error: Type of "schema" is partially unknown
- Type of "schema" is "Unknown | ((SchemaCommonFlowHandler) -> Coroutine[Any, Any, Unknown | None]) | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/home_connect/sensor.py:100:53 - error: Type of "_attr_native_value" is partially unknown
- Type of "_attr_native_value" is "Unknown | str | int | float | date | datetime | Decimal | None" (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/homekit/__init__.py:643:35 - error: Type of "accessory" is unknown (reportUnknownMemberType)
- /tmp/mypy_primer/projects/core/homeassistant/components/homekit/util.py:618:37 - error: Type of "display_name" is unknown (reportUnknownMemberType)
... (truncated 285 lines) ...``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #84