Use union types instead of join in binder by ilevkivskyi · Pull Request #18538 · python/mypy (original) (raw)
Diff from mypy_primer, showing the effect of this PR on open source code:
arviz (https://github.com/arviz-devs/arviz)
- arviz/data/inference_data.py:442: error: Argument 2 to "InferenceData" has incompatible type "**dict[Any, Dataset]"; expected "bool" [arg-type]
optuna (https://github.com/optuna/optuna)
- tests/trial_tests/test_frozen.py:108: error: Unused "type: ignore" comment [unused-ignore]
cwltool (https://github.com/common-workflow-language/cwltool)
- cwltool/pack.py: note: In function "find_run":
- cwltool/pack.py:35:22: error: Argument 1 to "find_run" has incompatible type "str | int | float | MutableSequence[CWLOutputType] | MutableMapping[str, CWLOutputType] | Any | None"; expected "CWLObjectType | int | float | str | CommentedMap | CommentedSeq | None" [arg-type]
- cwltool/main.py: note: In function "load_job_order":
- cwltool/main.py:377:41: error: Unsupported right operand type for in ("Any | int | float | str | CommentedMap | CommentedSeq") [operator]
- cwltool/main.py:379:49: error: Argument 1 to "resolve_overrides" has incompatible type "Any | int | float | str | CommentedMap | CommentedSeq"; expected "CommentedMap | CommentedSeq | str | None" [arg-type]
- cwltool/main.py:380:9: error: Item "int" of "Any | int | float | str | CommentedMap | CommentedSeq" has no attribute "delitem" [union-attr]
- cwltool/main.py:380:9: error: Item "float" of "Any | int | float | str | CommentedMap | CommentedSeq" has no attribute "delitem" [union-attr]
- cwltool/main.py:380:9: error: Item "str" of "Any | int | float | str | CommentedMap | CommentedSeq" has no attribute "delitem" [union-attr]
pydantic (https://github.com/pydantic/pydantic)
- pydantic/v1/main.py:901: error: Set comprehension has incompatible type Set[int | str]; expected Set[str | None] [misc]
- pydantic/v1/main.py:901: note: Left operand is of type "set[str] | dict_keys[str, Any]"
check-jsonschema (https://github.com/python-jsonschema/check-jsonschema)
- src/check_jsonschema/schema_loader/main.py:190: error: Unexpected keyword argument "registry" for "Validator" [call-arg]
- note: "Validator" defined here
- src/check_jsonschema/schema_loader/main.py:195: error: Redundant cast to "Validator" [redundant-cast]
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/client/orchestration/init.py:1170: error: "str" has no attribute "major" [attr-defined]
- src/prefect/client/orchestration/init.py:1511: error: "str" has no attribute "major" [attr-defined]
- src/prefect/server/models/task_runs.py:138: error: Item "None" of "Optional[TaskRun]" has no attribute "created" [union-attr]
- src/prefect/server/models/task_runs.py:141: error: Item "None" of "Optional[TaskRun]" has no attribute "id" [union-attr]
- src/prefect/server/models/task_runs.py:147: error: Incompatible return value type (got "Optional[TaskRun]", expected "TaskRun") [return-value]
- src/prefect/locking/filesystem.py:64: error: Unsupported target for indexed assignment ("Optional[_LockInfo]") [index]
- src/prefect/locking/filesystem.py:65: error: Item "None" of "Optional[_LockInfo]" has no attribute "get" [union-attr]
- src/prefect/locking/filesystem.py:66: error: Unsupported target for indexed assignment ("Optional[_LockInfo]") [index]
- src/prefect/locking/filesystem.py:69: error: Incompatible types in assignment (expression has type "Optional[_LockInfo]", target has type "_LockInfo") [assignment]
- src/prefect/locking/filesystem.py:86: error: Unsupported target for indexed assignment ("Optional[_LockInfo]") [index]
- src/prefect/locking/filesystem.py:87: error: Item "None" of "Optional[_LockInfo]" has no attribute "get" [union-attr]
- src/prefect/locking/filesystem.py:88: error: Unsupported target for indexed assignment ("Optional[_LockInfo]") [index]
- src/prefect/locking/filesystem.py:91: error: Incompatible types in assignment (expression has type "Optional[_LockInfo]", target has type "_LockInfo") [assignment]
- src/prefect/cli/config.py:70: error: "str" has no attribute "name" [attr-defined]
- src/prefect/infrastructure/provisioners/container_instance.py:345: error: Item "None" of "Union[str, dict[str, Any], None]" has no attribute "iter" (not iterable) [union-attr]
- src/prefect/infrastructure/provisioners/container_instance.py:375: error: Value of type "Union[str, dict[str, Any], None]" is not indexable [index]
- src/prefect/infrastructure/provisioners/container_instance.py:375: error: Invalid index type "str" for "str"; expected type "Union[SupportsIndex, slice[Any, Any, Any]]" [index]
- src/prefect/cli/deploy.py:677: error: Argument "actions" to "_generate_default_pull_action" has incompatible type "dict[str, Any]"; expected "list[dict[str, Any]]" [arg-type]
- src/prefect/cli/deploy.py:677: error: Argument "actions" to "_generate_default_pull_action" has incompatible type "Union[dict[str, list[dict[str, Any]]], dict[str, Any]]"; expected "list[dict[str, Any]]" [arg-type]
altair (https://github.com/vega/altair)
- altair/vegalite/v5/schema/channels.py:245: error: Unused "type: ignore" comment [unused-ignore]
manticore (https://github.com/trailofbits/manticore)
- manticore/core/workspace.py:220: error: Argument 1 to "exists" has incompatible type "str | None"; expected "int | str | bytes | PathLike[str] | PathLike[bytes]" [arg-type]
- manticore/core/workspace.py:221: error: Argument 1 to "isdir" has incompatible type "str | None"; expected "int | str | bytes | PathLike[str] | PathLike[bytes]" [arg-type]
- manticore/core/workspace.py:223: error: Argument 1 to "mkdir" has incompatible type "str | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]" [arg-type]
SinbadCogs (https://github.com/mikeshardmind/SinbadCogs)
- rolemanagement/core.py:420: error: Item "str" of "Union[Any, str]" has no attribute "id" [union-attr]
- rolemanagement/core.py:492: error: Item "str" of "Union[Any, str]" has no attribute "id" [union-attr]
pandas (https://github.com/pandas-dev/pandas)
- pandas/core/util/hashing.py:347: error: Incompatible return value type (got "Any | ndarray[tuple[int, ...], dtype[signedinteger[Any]]]", expected "ndarray[tuple[int, ...], dtype[unsignedinteger[_64Bit]]]") [return-value]
- pandas/core/nanops.py:641: error: Incompatible return value type (got "ndarray[Any, Any] | float | NaTType", expected "float") [return-value]
- pandas/_testing/_io.py:84: error: Unused "type: ignore" comment [unused-ignore]
- pandas/_testing/_io.py:85: error: Unused "type: ignore" comment [unused-ignore]
- pandas/_testing/_io.py:141: error: No overload variant of "ZipFile" matches argument types "Any", "str" [call-overload]
- pandas/_testing/_io.py:141: note: Possible overload variants:
- pandas/_testing/_io.py:141: note: def init(self, file: str | PathLike[str] | IO[bytes], mode: Literal['r', 'w', 'x', 'a'] = ..., compression: int = ..., allowZip64: bool = ..., compresslevel: int | None = ..., *, strict_timestamps: bool = ..., metadata_encoding: str | None = ...) -> ZipFile
- pandas/_testing/_io.py:141: note: def init(self, file: str | PathLike[str] | _ZipReadable, mode: Literal['r'] = ..., compression: int = ..., allowZip64: bool = ..., compresslevel: int | None = ..., *, strict_timestamps: bool = ..., metadata_encoding: str | None = ...) -> ZipFile
- pandas/_testing/_io.py:141: note: def init(self, file: str | PathLike[str] | _ZipWritable, mode: Literal['w', 'x'] = ..., compression: int = ..., allowZip64: bool = ..., compresslevel: int | None = ..., *, strict_timestamps: bool = ..., metadata_encoding: None = ...) -> ZipFile
- pandas/_testing/_io.py:141: note: def init(self, file: str | PathLike[str] | _ZipReadableTellable, mode: Literal['a'] = ..., compression: int = ..., allowZip64: bool = ..., compresslevel: int | None = ..., *, strict_timestamps: bool = ..., metadata_encoding: None = ...) -> ZipFile
- pandas/_testing/_io.py:141: error: No overload variant of "BZ2File" matches argument types "Any", "str" [call-overload]
- pandas/_testing/_io.py:141: note: def init(self, filename: _WritableFileobj, mode: Literal['w', 'wb', 'x', 'xb', 'a', 'ab'], *, compresslevel: int = ...) -> BZ2File
- pandas/_testing/_io.py:141: note: def init(self, filename: _ReadableFileobj, mode: Literal['', 'r', 'rb'] = ..., *, compresslevel: int = ...) -> BZ2File
- pandas/_testing/_io.py:141: note: def init(self, filename: str | bytes | PathLike[str] | PathLike[bytes], mode: Literal['', 'r', 'rb'] | Literal['w', 'wb', 'x', 'xb', 'a', 'ab'] = ..., *, compresslevel: int = ...) -> BZ2File
- pandas/_testing/_io.py:141: error: Argument "mode" to "TarFile" has incompatible type "str"; expected "Literal['r', 'a', 'w', 'x']" [arg-type]
- pandas/core/computation/expr.py:679: error: Unused "type: ignore" comment [unused-ignore]
- pandas/core/computation/expr.py:679: error: Item "Attribute" of "Attribute | Name" has no attribute "id" [union-attr]
- pandas/core/computation/expr.py:679: note: Error code "union-attr" not covered by "type: ignore" comment
- pandas/core/computation/expr.py:701: error: Unused "type: ignore" comment [unused-ignore]
- pandas/core/computation/expr.py:701: error: Item "Attribute" of "Attribute | Name" has no attribute "id" [union-attr]
- pandas/core/computation/expr.py:701: note: Error code "union-attr" not covered by "type: ignore" comment
- pandas/core/common.py:295: error: Incompatible return value type (got "ndarray[Any, Any] | Iterable[Any]", expected "ndarray[Any, Any]") [return-value]
- pandas/core/algorithms.py:905: error: Incompatible types in assignment (expression has type "ndarray[Any, Any] | DatetimeArray | TimedeltaArray | PeriodArray | Any", variable has type "ndarray[tuple[int, ...], dtype[Any]]") [assignment]
- pandas/core/arrays/masked.py:706: error: Unused "type: ignore" comment [unused-ignore]
- pandas/io/pytables.py:3352: error: Incompatible return value type (got "list[Any]", expected "tuple[int, ...] | None") [return-value]
- pandas/io/parsers/c_parser_wrapper.py:123: error: Cannot determine type of "names" [has-type]
- pandas/core/series.py:2833: error: Argument 2 to "diff" has incompatible type "float | int | integer[Any]"; expected "int" [arg-type]
- pandas/core/apply.py:1911: error: "partial[Any]" has no attribute "name"; maybe "new"? [attr-defined]
- pandas/core/window/rolling.py:668: error: Unused "type: ignore" comment [unused-ignore]
- pandas/core/internals/managers.py:972: error: Incompatible types in assignment (expression has type "signedinteger[_32Bit | _64Bit]", variable has type "int") [assignment]
- pandas/core/indexes/datetimelike.py:602: error: "Index" has no attribute "_with_freq"; maybe "_with_infer"? [attr-defined]
- pandas/core/indexes/base.py:6078: error: "Index" has no attribute "_with_freq"; maybe "_with_infer"? [attr-defined]
- pandas/core/groupby/groupby.py:2881: error: Unused "type: ignore" comment [unused-ignore]
- pandas/core/groupby/groupby.py:5562: error: Argument "obj" to "SeriesGroupBy" has incompatible type "Series | DataFrame"; expected "Series" [arg-type]
- pandas/core/groupby/groupby.py:5562: error: Argument "obj" to "DataFrameGroupBy" has incompatible type "Series | DataFrame"; expected "DataFrame" [arg-type]
- pandas/core/interchange/column.py:338: error: Unused "type: ignore" comment [unused-ignore]
- pandas/io/sas/sas7bdat.py:298: error: Unused "type: ignore" comment [unused-ignore]
- pandas/io/formats/style.py:1790: error: "Never" has no attribute "shape" [attr-defined]
- pandas/io/formats/style.py:1793: error: "Never" has no attribute "shape" [attr-defined]
sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/transforms/i18n.py:502:17: error: "Never" has no attribute "apply_translated_message" [attr-defined]
- sphinx/cmd/quickstart.py: note: In function "main":
- sphinx/cmd/quickstart.py:803:21: error: Item "object" of "object | Any" has no attribute "iter" (not iterable) [union-attr]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/settings/_config.py:895: error: Incompatible types in assignment (expression has type "str", target has type "None") [assignment]
- ddtrace/internal/remoteconfig/client.py:520: error: Set comprehension has incompatible type Set[ConfigMetadata]; expected Set[str] [misc]
artigraph (https://github.com/artigraph/artigraph)
- tests/arti/graphs/test_graph.py:30: error: "int" has no attribute "storage" [attr-defined]
- tests/arti/graphs/test_graph.py:31: error: "Storage[Any]" has no attribute "id" [attr-defined]
- tests/arti/graphs/test_graph.py:46: error: "int" has no attribute "storage" [attr-defined]
- tests/arti/graphs/test_graph.py:56: error: Argument "a2" to "P2" has incompatible type "P1"; expected "A2" [arg-type]
AutoSplit (https://github.com/Toufool/AutoSplit)
- src/user_profile.py:146:47: error: Argument 3 to "set_hotkey" has incompatible type "object"; expected "str" [arg-type]
streamlit (https://github.com/streamlit/streamlit)
- lib/tests/streamlit/runtime/credentials_test.py: note: In member "test_Credentials_activate" of class "CredentialsClassTest":
- lib/tests/streamlit/runtime/credentials_test.py:276:30: error: "None" has no attribute "email" [attr-defined]
- lib/tests/streamlit/runtime/credentials_test.py:277:30: error: "None" has no attribute "is_valid" [attr-defined]
- lib/tests/streamlit/runtime/credentials_test.py: note: At top level:
- lib/tests/streamlit/runtime/scriptrunner/script_runner_test.py: note: In member "setUp" of class "ScriptRunnerTest":
- lib/tests/streamlit/runtime/scriptrunner/script_runner_test.py:94:9: error: Cannot assign to a method [method-assign]
- lib/tests/streamlit/runtime/fragment_test.py: note: In member "test_wrapped_fragment_not_saved_in_FragmentStorage" of class "FragmentTest":
- lib/tests/streamlit/runtime/fragment_test.py:175:9: error: Cannot assign to a method [method-assign]
pylint (https://github.com/pycqa/pylint)
- pylint/checkers/deprecated.py:155: error: Argument 2 to "check_deprecated_class" of "DeprecatedMixin" has incompatible type "str | None"; expected "str" [arg-type]
xarray (https://github.com/pydata/xarray)
- xarray/core/indexing.py: note: In function "_decompose_outer_indexer":
- xarray/core/indexing.py:1259: error: Argument 1 to "_decompose_slice" has incompatible type "number[Any, int | float | complex]"; expected "slice[Any, Any, Any]" [arg-type]
- xarray/core/indexing.py:1297: error: Argument 1 to "_decompose_slice" has incompatible type "number[Any, int | float | complex]"; expected "slice[Any, Any, Any]" [arg-type]
- xarray/core/computation.py: note: In function "apply_variable_ufunc":
- xarray/core/computation.py:848: error: "Never" has no attribute "ndim" [attr-defined]
- xarray/core/computation.py:851: error: "Never" has no attribute "ndim" [attr-defined]
black (https://github.com/psf/black)
- src/blib2to3/pgen2/parse.py:103:23: error: Argument 1 to "_addtoken" of "Parser" has incompatible type "*list[object]"; expected "int" [arg-type]
- src/blib2to3/pgen2/parse.py:103:23: error: Argument 1 to "_addtoken" of "Parser" has incompatible type "*list[object]"; expected "str" [arg-type]
- src/blib2to3/pgen2/parse.py:103:23: error: Argument 1 to "_addtoken" of "Parser" has incompatible type "*list[object]"; expected "tuple[str, tuple[int, int]]" [arg-type]
- src/blib2to3/pgen2/parse.py:103:23: error: Argument 1 to "addtoken" of "Parser" has incompatible type "*list[object]"; expected "int" [arg-type]
- src/blib2to3/pgen2/parse.py:103:23: error: Argument 1 to "addtoken" of "Parser" has incompatible type "*list[object]"; expected "str" [arg-type]
- src/blib2to3/pgen2/parse.py:103:23: error: Argument 1 to "addtoken" of "Parser" has incompatible type "*list[object]"; expected "tuple[str, tuple[int, int]]" [arg-type]
- src/black/cache.py:45:5: error: Returning Any from function declared to return "Path" [no-any-return]
spark (https://github.com/apache/spark)
- python/pyspark/sql/udf.py:683: error: "UserDefinedFunctionLike" has no attribute "_unwrapped" [attr-defined]
- python/pyspark/sql/functions/builtin.py:2615: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:2669: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:3056: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:7802: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:7858: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:8889: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:8944: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/functions/builtin.py:8999: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/pandas/generic.py:2681: error: PandasDataFrameLike? has no attribute "iloc" [attr-defined]
- python/pyspark/pandas/groupby.py:3701: error: Item "tuple[Any, ...]" of "Series[Any] | tuple[Any, ...]" has no attribute "rename" [union-attr]
- python/pyspark/pandas/groupby.py:3701: error: Argument 3 to "align_diff_frames" has incompatible type "Series[Any] | Any"; expected "DataFrame[Any]" [arg-type]
- python/pyspark/pandas/groupby.py:3713: error: Item "tuple[Any, ...]" of "Series[Any] | tuple[Any, ...]" has no attribute "name" [union-attr]
- python/pyspark/pandas/indexes/multi.py:1180: error: Argument 1 to "_index_fields_for_union_like" of "Index" has incompatible type "DataFrame[Any] | Series[Any] | Index | list[Any]"; expected "Index" [arg-type]
- python/pyspark/sql/connect/functions/builtin.py:578: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:597: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:609: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:691: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:826: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:1571: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:1585: error: Unused "type: ignore" comment [unused-ignore]
- python/pyspark/sql/connect/functions/builtin.py:1599: error: Unused "type: ignore" comment [unused-ignore]
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/synchronous/cursor.py:1004: error: Invalid index type "int | Any | Pattern[Any]" for "list[Any]"; expected type "SupportsIndex" [index]
- pymongo/asynchronous/cursor.py:1006: error: Invalid index type "int | Any | Pattern[Any]" for "list[Any]"; expected type "SupportsIndex" [index]
speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
- backend/api/tournament_scheduler_api.py:327: error: No overload variant of "getitem" of "list" matches argument type "str" [call-overload]
- backend/api/tournament_scheduler_api.py:327: note: Possible overload variants:
- backend/api/tournament_scheduler_api.py:327: note: def getitem(self, SupportsIndex, /) -> Any
- backend/api/tournament_scheduler_api.py:327: note: def getitem(self, slice[Any, Any, Any], /) -> list[Any]
- backend/api/tournament_scheduler_api.py:331: error: No overload variant of "getitem" of "list" matches argument type "str" [call-overload]
- backend/api/tournament_scheduler_api.py:331: note: Possible overload variants:
- backend/api/tournament_scheduler_api.py:331: note: def getitem(self, SupportsIndex, /) -> Any
- backend/api/tournament_scheduler_api.py:331: note: def getitem(self, slice[Any, Any, Any], /) -> list[Any]
- backend/api/tournament_scheduler_api.py:335: error: No overload variant of "getitem" of "list" matches argument type "str" [call-overload]
- backend/api/tournament_scheduler_api.py:335: note: Possible overload variants:
- backend/api/tournament_scheduler_api.py:335: note: def getitem(self, SupportsIndex, /) -> Any
- backend/api/tournament_scheduler_api.py:335: note: def getitem(self, slice[Any, Any, Any], /) -> list[Any]
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/config/init.py:342: error: Returning Any from function declared to return "Config" [no-any-return]
- src/_pytest/fixtures.py:1107: error: Returning Any from function declared to return "FixtureValue" [no-any-return]
sympy (https://github.com/sympy/sympy)
- sympy/core/evalf.py:629: error: Argument 1 to "scaled_zero" has incompatible type "tuple[int, int, int, int] | tuple[list[int], int, int, int] | None"; expected "tuple[list[int], int, int, int]" [arg-type]
- sympy/core/evalf.py:631: error: Argument 1 to "scaled_zero" has incompatible type "tuple[int, int, int, int] | tuple[list[int], int, int, int] | None"; expected "tuple[list[int], int, int, int]" [arg-type]
- sympy/core/evalf.py:917: error: Argument 1 to "evalf" has incompatible type "Expr | None"; expected "Expr" [arg-type]
- sympy/integrals/manualintegrate.py:1568: error: Unused "type: ignore" comment [unused-ignore]
- sympy/tensor/array/expressions/from_array_to_matrix.py:787: error: Unused "type: ignore" comment [unused-ignore]
openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/core/imports.py: note: At top level:
- openlibrary/core/imports.py:234: error: Unused "type: ignore" comment [unused-ignore]
- openlibrary/core/imports.py:235: error: Unused "type: ignore" comment [unused-ignore]
scrapy (https://github.com/scrapy/scrapy)
- scrapy/core/downloader/handlers/http11.py:393: error: Argument "proxyConf" has incompatible type "tuple[str | None, int, bytes | None]"; expected "tuple[str, int, bytes | None]" [arg-type]
materialize (https://github.com/MaterializeInc/materialize)
- ci/mkpipeline.py:691: error: Unsupported right operand type for in ("PipelineStep | None") [operator]
- ci/mkpipeline.py:692: error: Unsupported target for indexed assignment ("PipelineStep | None") [index]
- ci/mkpipeline.py:694: error: Item "PipelineStep" of "PipelineStep | None" has no attribute "get" [union-attr]
- ci/mkpipeline.py:694: error: Item "None" of "PipelineStep | None" has no attribute "get" [union-attr]
paroxython (https://github.com/laowantong/paroxython)
- paroxython/derived_labels_db.py:189: error: Invalid index type "str | Any" for "dict[LabelName, dict[Span, Any]]"; expected type "LabelName" [index]
vision (https://github.com/pytorch/vision)
- torchvision/datasets/video_utils.py:389: error: Unused "type: ignore" comment [unused-ignore]
sockeye (https://github.com/awslabs/sockeye)
- sockeye/data_io.py:771: error: Value of type "Iterable[Any]" is not indexable [index]
- sockeye/data_io.py:772: error: Value of type "Iterable[Any]" is not indexable [index]
mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/utils/meta.py:71: error: Unused "type: ignore" comment [unused-ignore]
pyppeteer (https://github.com/pyppeteer/pyppeteer)
- pyppeteer/page.py:836: error: Unused "type: ignore" comment [unused-ignore]
trio (https://github.com/python-trio/trio)
- src/trio/_core/_run.py:2754: error: Argument 1 to "run" of "Context" has incompatible type "Optional[Callable[[Any], object]]"; expected "Callable[[Union[Outcome[Any], BaseException, None]], object]" [arg-type]
- src/trio/_tests/test_util.py:246: error: Unused "type: ignore" comment [unused-ignore]
- src/trio/_tests/test_util.py:262: error: Unused "type: ignore" comment [unused-ignore]
- src/trio/_tests/test_util.py:263: error: Unused "type: ignore" comment [unused-ignore]
- src/trio/_tests/test_util.py:264: error: Unused "type: ignore" comment [unused-ignore]
- src/trio/_tests/test_exports.py:398: error: "str" has no attribute "get" [attr-defined]
- src/trio/_tests/test_exports.py:400: error: Invalid index type "str" for "str"; expected type "Union[SupportsIndex, slice[Any, Any, Any]]" [index]
- src/trio/_tests/test_exports.py:403: error: "str" has no attribute "get" [attr-defined]
pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/enhance.py:185: error: Unused "type: ignore" comment [unused-ignore]
- pwndbg/enhance.py:187: error: Unused "type: ignore" comment [unused-ignore]
ibis (https://github.com/ibis-project/ibis)
- ibis/formats/polars.py:143: error: "Sequence[Any]" has no attribute "dtype" [attr-defined]
- ibis/expr/types/relations.py:3994: error: "list[Any]" has no attribute "unnest" [attr-defined]
- ibis/expr/types/joins.py:355: error: Argument "predicates" to "JoinLink" has incompatible type "list[Any]"; expected "tuple[Value[Boolean, Any], ...]" [arg-type]
- ibis/expr/types/temporal_windows.py:68: error: Argument 1 to "unwrap_aliases" has incompatible type "str | Value | Sequence[str] | Sequence[Value] | None"; expected "Iterator[Value]" [arg-type]
- ibis/expr/types/temporal_windows.py:68: error: Argument 1 to "unwrap_aliases" has incompatible type "Any | Value | Sequence[str] | Sequence[Value]"; expected "Iterator[Value]" [arg-type]
- ibis/expr/types/temporal_windows.py:69: error: Argument 1 to "unwrap_aliases" has incompatible type "Sequence[Scalar] | None"; expected "Iterator[Value]" [arg-type]
- ibis/expr/types/temporal_windows.py:69: error: Argument 1 to "unwrap_aliases" has incompatible type "Sequence[Scalar] | Any"; expected "Iterator[Value]" [arg-type]
- ibis/expr/types/temporal_windows.py:72: error: Argument 1 to "update" of "MutableMapping" has incompatible type "str | Value | Sequence[str] | Sequence[Value] | None"; expected "Iterable[tuple[Any, Any]]" [arg-type]
- ibis/expr/types/temporal_windows.py:72: error: Argument 1 to "update" of "MutableMapping" has incompatible type "Any | Value | Sequence[str] | Sequence[Value]"; expected "SupportsKeysAndGetItem[Any, Any]" [arg-type]
- ibis/expr/types/temporal_windows.py:79: error: Argument "metrics" to "WindowAggregate" has incompatible type "Sequence[ibis.expr.types.generic.Scalar] | None"; expected "FrozenOrderedDict[str, Value[Any, ibis.expr.datashape.Scalar]]" [arg-type]
- ibis/expr/types/temporal_windows.py:79: error: Argument "metrics" to "WindowAggregate" has incompatible type "Sequence[ibis.expr.types.generic.Scalar] | Any"; expected "FrozenOrderedDict[str, Value[Any, ibis.expr.datashape.Scalar]]" [arg-type]
- ibis/backends/sql/compilers/trino.py:638: error: "int" has no attribute "as_" [attr-defined]
- ibis/backends/sql/compilers/trino.py:638: error: Item "int" of "int | Any" has no attribute "as_" [union-attr]
- ibis/backends/sql/compilers/trino.py:638: error: Unsupported operand types for - ("None" and "int") [operator]
- ibis/backends/sql/compilers/trino.py:638: note: Left operand is of type "str | None"
- ibis/backends/sql/compilers/trino.py:638: note: Left operand is of type "str | Any"
- ibis/backends/sql/compilers/postgres.py:783: error: "int" has no attribute "as_" [attr-defined]
- ibis/backends/sql/compilers/postgres.py:783: error: Item "int" of "int | Any" has no attribute "as_" [union-attr]
- ibis/backends/sql/compilers/postgres.py:783: error: Unsupported operand types for - ("None" and "int") [operator]
- ibis/backends/sql/compilers/postgres.py:783: note: Left operand is of type "str | None"
- ibis/backends/sql/compilers/postgres.py:783: note: Left operand is of type "str | Any"
- ibis/tests/benchmarks/benchfuncs.py:112: error: Unsupported operand types for & ("BooleanValue" and "bool") [operator]
- ibis/tests/benchmarks/benchfuncs.py:296: error: Unsupported operand types for & ("BooleanValue" and "Value") [operator]
- ibis/tests/benchmarks/benchfuncs.py:314: error: Incompatible return value type (got "tuple[Any, Any, Value]", expected "tuple[StringColumn, StringColumn, StringColumn]") [return-value]
- ibis/backends/mssql/init.py:711: error: Item "Mapping[str, str | DataType]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mssql/init.py:711: error: Item "Mapping[str, str | DataType]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mssql/init.py:711: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mssql/init.py:711: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mssql/init.py:711: error: Item "None" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mssql/init.py:758: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/mssql/init.py:758: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/sqlite/init.py:497: error: Item "Expr" of "Any | Expr | None" has no attribute "schema" [union-attr]
- ibis/backends/sqlite/init.py:497: error: Item "None" of "Any | Any | Any | Any | Any | None" has no attribute "schema" [union-attr]
- ibis/backends/sqlite/init.py:497: error: Item "None" of "Any | Expr | None" has no attribute "schema" [union-attr]
- ibis/backends/risingwave/init.py:223: error: Item "tuple[str, ...]" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/risingwave/init.py:223: error: Item "str" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/risingwave/init.py:227: error: Item "tuple[str, ...]" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/risingwave/init.py:227: error: Item "str" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/risingwave/init.py:600: error: Item "Mapping[str, str | DataType]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/risingwave/init.py:600: error: Item "Mapping[str, str | DataType]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/risingwave/init.py:600: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/risingwave/init.py:600: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/risingwave/init.py:600: error: Item "None" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/risingwave/init.py:640: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/risingwave/init.py:640: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/postgres/init.py:331: error: Item "tuple[str, ...]" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/postgres/init.py:331: error: Item "str" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/postgres/init.py:335: error: Item "tuple[str, ...]" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/postgres/init.py:335: error: Item "str" of "tuple[str, str] | str" has no attribute "args" [union-attr]
- ibis/backends/postgres/init.py:659: error: Item "Mapping[str, str | DataType]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/postgres/init.py:659: error: Item "Mapping[str, str | DataType]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/postgres/init.py:659: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/postgres/init.py:659: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/postgres/init.py:659: error: Item "None" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/postgres/init.py:689: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/postgres/init.py:689: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/oracle/init.py:310: error: Item "tuple[str, ...]" of "tuple[str, str] | str" has no attribute "sql" [union-attr]
- ibis/backends/oracle/init.py:310: error: Item "str" of "tuple[str, str] | str" has no attribute "sql" [union-attr]
- ibis/backends/oracle/init.py:606: error: Argument 1 to "Schema" has incompatible type "dict[str, DataType]"; expected "FrozenOrderedDict[str, DataType]" [arg-type]
- ibis/backends/oracle/init.py:606: error: Argument 1 to "Schema" has incompatible type "dict[Any, DataType]"; expected "FrozenOrderedDict[str, DataType]" [arg-type]
- ibis/backends/mysql/init.py:434: error: Item "Mapping[str, str | DataType]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mysql/init.py:434: error: Item "Mapping[str, str | DataType]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mysql/init.py:434: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mysql/init.py:434: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mysql/init.py:434: error: Item "None" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/mysql/init.py:461: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/mysql/init.py:461: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/exasol/init.py:391: error: Item "Mapping[str, str | DataType]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/exasol/init.py:391: error: Item "Mapping[str, str | DataType]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/exasol/init.py:391: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/exasol/init.py:391: error: Item "Iterable[tuple[str, str | DataType]]" of "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/exasol/init.py:391: error: Item "None" of "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]] | None" has no attribute "to_sqlglot" [union-attr]
- ibis/backends/exasol/init.py:416: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/exasol/init.py:416: error: Argument "schema" to "DatabaseTable" has incompatible type "Schema | Any | Mapping[str, str | DataType] | Iterable[tuple[str, str | DataType]]"; expected "Schema" [arg-type]
- ibis/backends/datafusion/init.py:381: error: Item "str" of "str | None" has no attribute "database" [union-attr]
- ibis/backends/datafusion/init.py:381: error: Item "str" of "str | Any" has no attribute "database" [union-attr]
- ibis/backends/datafusion/init.py:381: error: Item "None" of "str | None" has no attribute "database" [union-attr]
- ibis/backends/datafusion/init.py:383: error: Item "str" of "str | None" has no attribute "database" [union-attr]
- ibis/backends/datafusion/init.py:383: error: Item "str" of "str | Any" has no attribute "database" [union-attr]
- ibis/backends/datafusion/init.py:383: error: Item "None" of "str | None" has no attribute "database" [union-attr]
- ibis/backends/datafusion/init.py:385: error: Item "str" of "str | None" has no attribute "names" [union-attr]
- ibis/backends/datafusion/init.py:385: error: Item "str" of "str | Any" has no attribute "names" [union-attr]
- ibis/backends/datafusion/init.py:385: error: Item "None" of "str | None" has no attribute "names" [union-attr]
- ibis/backends/datafusion/init.py:388: error: Item "str" of "str | None" has no attribute "table" [union-attr]
- ibis/backends/datafusion/init.py:388: error: Item "str" of "str | Any" has no attribute "table" [union-attr]
- ibis/backends/datafusion/init.py:388: error: Item "None" of "str | None" has no attribute "table" [union-attr]
- ibis/backends/clickhouse/init.py:698: error: Item "None" of "Any | Expr | None" has no attribute "schema" [union-attr]
- ibis/backends/clickhouse/init.py:698: error: Item "Expr" of "Any | Expr | None" has no attribute "schema" [union-attr]
tornado (https://github.com/tornadoweb/tornado)
- tornado/locale.py:445: error: Incompatible return value type (got "str", expected "bool") [return-value]
- tornado/locale.py:451: error: Incompatible return value type (got "str", expected "bool") [return-value]
PyGithub (https://github.com/PyGithub/PyGithub)
- github/GithubRetry.py:119: error: Unused "type: ignore" comment [unused-ignore]
steam.py (https://github.com/Gobot1234/steam.py)
- steam/app.py:1689: error: Unused "type: ignore" comment [unused-ignore]
- steam/clan.py:121: error: Item "str" of "Any | str" has no attribute "parts" [union-attr]
- steam/client.py:707: error: Item "str" of "Any | str" has no attribute "parts" [union-attr]
pandera (https://github.com/pandera-dev/pandera)
- pandera/backends/polars/container.py:270: error: Unused "type: ignore" comment [unused-ignore]
- pandera/backends/polars/container.py:277: error: Unused "type: ignore" comment [unused-ignore]
- pandera/backends/polars/container.py:281: error: Unused "type: ignore" comment [unused-ignore]
jax (https://github.com/google/jax)
- jax/_src/dtypes.py:151: error: Unused "type: ignore" comment [unused-ignore]
- jax/_src/dtypes.py:157: error: Unused "type: ignore" comment [unused-ignore]
- jax/_src/dtypes.py:163: error: Unused "type: ignore" comment [unused-ignore]
- jax/_src/lax/lax.py:4118: error: Argument 2 to "dot_algorithm_attr" has incompatible type "str | type[Any] | dtype[Any] | SupportsDType | None"; expected "str | type[Any] | dtype[Any] | SupportsDType" [arg-type]
- jax/_src/lax/lax.py:4118: error: Argument 3 to "dot_algorithm_attr" has incompatible type "str | type[Any] | dtype[Any] | SupportsDType | None"; expected "str | type[Any] | dtype[Any] | SupportsDType" [arg-type]
- jax/_src/cudnn/fused_attention_stablehlo.py:1704: error: Unused "type: ignore" comment [unused-ignore]
- jax/_src/image/scale.py:267: error: No overload variant of "setitem" of "list" matches argument types "int", "Array" [call-overload]
- jax/_src/image/scale.py:267: note: Possible overload variants:
- jax/_src/image/scale.py:267: note: def setitem(self, SupportsIndex, slice[int | Any, int | Any, int | Any], /) -> None
- jax/_src/image/scale.py:267: note: def setitem(self, slice[Any, Any, Any], Iterable[slice[int | Any, int | Any, int | Any]], /) -> None
discord.py (https://github.com/Rapptz/discord.py)
- discord/app_commands/tree.py:797: error: Argument 1 to "delitem" of "dict" has incompatible type "tuple[str, int | None, int]"; expected "str" [arg-type]
- discord/app_commands/tree.py:806: error: Argument 1 to "delitem" of "dict" has incompatible type "tuple[str, int | None, int]"; expected "str" [arg-type]
- discord/ui/select.py:181: error: Invalid index type "type[Snowflake]" for "dict[type[SelectDefaultValue] | type[Object] | type[Role] | type[Member] | type[ClientUser] | type[User] | type[GuildChannel] | type[AppCommandChannel] | type[AppCommandThread] | type[Thread], SelectDefaultValueType]"; expected type "type[SelectDefaultValue] | type[Object] | type[Role] | type[Member] | type[ClientUser] | type[User] | type[GuildChannel] | type[AppCommandChannel] | type[AppCommandThread] | type[Thread]" [index]
- discord/ext/commands/help.py:978: error: Argument 2 has incompatible type "Command[None, [VarArg(Any), KwArg(Any)], Any] | None"; expected "Command[Any, [VarArg(Any), KwArg(Any)], Any]" [arg-type]
- discord/ext/commands/help.py:982: error: Argument 2 has incompatible type "Command[None, [VarArg(Any), KwArg(Any)], Any] | None"; expected "Command[Any, [VarArg(Any), KwArg(Any)], Any]" [arg-type]
- discord/ext/commands/help.py:989: error: Argument 1 to "send_command_help" of "HelpCommand" has incompatible type "Command[None, [VarArg(Any), KwArg(Any)], Any] | None"; expected "Command[Any, [VarArg(Any), KwArg(Any)], Any]" [arg-type]
aiohttp (https://github.com/aio-libs/aiohttp)
- aiohttp/formdata.py:93: error: Unused "type: ignore" comment [unused-ignore]
core (https://github.com/home-assistant/core)
- homeassistant/data_entry_flow.py:361: error: "object" not callable [operator]
- homeassistant/helpers/template.py:185: error: Returning Any from function declared to return "TemplateState" [no-any-return]
- homeassistant/helpers/template.py:194: error: Returning Any from function declared to return "TemplateState" [no-any-return]
- homeassistant/components/system_health/init.py:195: error: Incompatible types in assignment (expression has type "bool", target has type "str") [assignment]
- homeassistant/components/system_health/init.py:196: error: Incompatible types in assignment (expression has type "dict[str, str]", target has type "str") [assignment]
- homeassistant/components/system_health/init.py:198: error: Incompatible types in assignment (expression has type "bool", target has type "str") [assignment]
- homeassistant/components/light/init.py:534: error: Too many arguments for "color_rgb_to_rgbww" [call-arg]
- homeassistant/components/light/init.py:604: error: Too many arguments for "color_rgbww_to_rgb" [call-arg]
- homeassistant/components/matter/binary_sensor.py:58: error: Incompatible types in assignment (expression has type "Any | int | None", variable has type "bool | None") [assignment]
- homeassistant/components/alexa/handlers.py:1612: error: Incompatible types in assignment (expression has type "float", variable has type "int | None") [assignment]
- homeassistant/components/alexa/handlers.py:1623: error: Incompatible types in assignment (expression has type "float", variable has type "int | None") [assignment]
- homeassistant/components/solarlog/coordinator.py:176: error: Returning Any from function declared to return "bool" [no-any-return]
- homeassistant/components/minecraft_server/api.py:88: error: Item "None" of "Any | None" has no attribute "timeout" [union-attr]
- homeassistant/components/linear_garage_door/coordinator.py:56: error: Item "None" of "list[dict[str, Any]] | None" has no attribute "iter" (not iterable) [union-attr]
- homeassistant/components/file_upload/init.py:187: error: Item "None" of "Future[None] | None" has no attribute "done" [union-attr]
- homeassistant/components/yalexs_ble/config_flow.py:131: error: Argument 2 to "async_find_existing_service_info" has incompatible type "str | None"; expected "str" [arg-type]
- homeassistant/components/reolink/host.py:188: error: Argument 1 to "async_save" of "Store" has incompatible type "str | None"; expected "str" [arg-type]
- homeassistant/components/recorder/history/modern.py:769: error: Unused "type: ignore" comment [unused-ignore]
- homeassistant/components/hyperion/config_flow.py:338: error: Dict entry 0 has incompatible type "str": "str | None"; expected "str": "str" [dict-item]
- homeassistant/components/frontier_silicon/media_player.py:247: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "int | None" [type-var]
- homeassistant/components/deconz/entity.py:93: error: Unsupported left operand type for + ("None") [operator]
- homeassistant/components/deconz/entity.py:93: note: Left operand is of type "str | None"
- homeassistant/components/androidtv/config_flow.py:390: error: Unused "type: ignore" comment [unused-ignore]
- homeassistant/components/switchbee/climate.py:173: error: Dict entry 0 has incompatible type "Any": "str | None"; expected "str": "int | str" [dict-item]
- homeassistant/components/sonos/alarms.py:69: error: Unsupported operand types for <= ("int" and "None") [operator]
- homeassistant/components/sonos/alarms.py:69: note: Right operand is of type "int | None"
- homeassistant/components/homekit_controller/config_flow.py:139: error: Argument 1 to "normalize_hkid" has incompatible type "str | None"; expected "str" [arg-type]
- homeassistant/components/zha/radio_manager.py:423: error: Unused "type: ignore" comment [unused-ignore]
- homeassistant/components/tplink/config_flow.py:334: error: Incompatible types in assignment (expression has type "int", target has type "str") [assignment]
- homeassistant/components/isy994/sensor.py:204: error: Argument 1 to "temperature" of "UnitSystem" has incompatible type "float | int | None"; expected "float" [arg-type]
- homeassistant/components/knx/config_flow.py:201: error: Argument 1 to "anext" has incompatible type "AsyncGenerator[Any, None] | None"; expected "_SupportsSynchronousAnext[Coroutine[Any, Any, Any]]" [arg-type]
- homeassistant/components/fully_kiosk/sensor.py:155: error: Argument 1 to "round_storage" has incompatible type "str | int | float | Any | None"; expected "int" [arg-type]
python-chess (https://github.com/niklasf/python-chess)
- chess/pgn.py:1315: error: Returning Any from function declared to return "HeadersT" [no-any-return]
ignite (https://github.com/pytorch/ignite)
- ignite/distributed/comp_models/base.py:271: error: Item "float" of "Any | float | str" has no attribute "item" [union-attr]
- ignite/distributed/comp_models/base.py:271: error: Item "str" of "Any | float | str" has no attribute "item" [union-attr]
- ignite/handlers/lr_finder.py:182: error: Incompatible types in assignment (expression has type "Any | float", variable has type "None") [assignment]
mitmproxy (https://github.com/mitmproxy/mitmproxy)
- mitmproxy/utils/debug.py:72: error: "Thread" has no attribute "_thread_started" [attr-defined]
kornia (https://github.com/kornia/kornia)
- kornia/feature/lightglue_onnx/lightglue.py:72: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:74: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:80: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:84: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:87: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:138: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:167: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/feature/lightglue_onnx/lightglue.py:175: error: Item "str" of "str | Any" has no attribute "type" [union-attr]
- kornia/enhance/adjust.py:726: error: Item "float" of "float | Any" has no attribute "iter" (not iterable) [union-attr]
- kornia/augmentation/_2d/mix/transplantation.py:182: error: Item "Sequence[int]" of "Sequence[int] | Any" has no attribute "ndim" [union-attr]
- kornia/augmentation/_2d/mix/transplantation.py:183: error: Item "Sequence[int]" of "Sequence[int] | Any" has no attribute "ndim" [union-attr]
poetry (https://github.com/python-poetry/poetry)
... (truncated 28 lines) ...```