Skip to content

Conversation

@madelyngamble2
Copy link

  • Add logic to infer return types from return statements for functions without explicit return type annotations
  • Collect return types from all return statements and create union type
  • Skip inference for generators, coroutines, and dynamically typed functions
  • Add test case to verify return type inference works correctly

@madelyngamble2 madelyngamble2 force-pushed the fix/20631/Mypy-not-inferring-return-type branch from a67002e to 792ac76 Compare January 22, 2026 19:11
@madelyngamble2 madelyngamble2 force-pushed the fix/20631/Mypy-not-inferring-return-type branch from 9bfb35f to 4e80ab5 Compare January 22, 2026 19:23
@A5rocks
Copy link
Collaborator

A5rocks commented Jan 22, 2026

This is not fixing the issue?

@madelyngamble2
Copy link
Author

madelyngamble2 commented Jan 22, 2026

From this result,
mypy.checker is a core module imported early.
mypy.suggestions is a higher-level module that depends on mypy.build (build graph/state).
Importing suggestions from checker pulled in build, which eventually imports back into checker.

I will update the PR for pass the Test cases. Regards

@github-actions

This comment has been minimized.

@madelyngamble2 madelyngamble2 force-pushed the fix/20631/Mypy-not-inferring-return-type branch 2 times, most recently from e45de0b to 5076431 Compare January 22, 2026 20:07
@github-actions

This comment has been minimized.

@madelyngamble2 madelyngamble2 force-pushed the fix/20631/Mypy-not-inferring-return-type branch from a7305b8 to 0b9d3ce Compare January 22, 2026 20:34
@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

spack (https://github.com/spack/spack)
+ lib/spack/spack/llnl/util/filesystem.py:699: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:705: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:723: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:723: error: Unexpected keyword argument "_permissions" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:792: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:792: error: Unexpected keyword argument "order" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:792: error: Unexpected keyword argument "follow_links" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:792: error: Unexpected keyword argument "ignore" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:792: error: Unexpected keyword argument "follow_nonexisting" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:829: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:835: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:857: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:857: error: Unexpected keyword argument "symlinks" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:857: error: Unexpected keyword argument "ignore" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:857: error: Unexpected keyword argument "_permissions" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1341: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1341: error: Unexpected keyword argument "order" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1341: error: Unexpected keyword argument "ignore" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1341: error: Unexpected keyword argument "follow_nonexisting" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1341: error: Unexpected keyword argument "follow_links" for <lambda>  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:2435: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/paths.py:18: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/util/git.py:40: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1007: note: "working_dir" defined here
+ lib/spack/spack/test/util/git.py:51: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/test/util/git.py:63: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/test/util/git.py:74: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/test/util/git.py:85: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/test/llnl/util/filesystem.py:712: error: Too many arguments for "safe_remove"  [call-arg]
+ lib/spack/spack/test/llnl/util/filesystem.py:732: error: Too many arguments for "keep_modification_time"  [call-arg]
+ lib/spack/spack/version/version_types.py:499: error: Incompatible return value type (got "int | VersionStrComponent | StandardVersion", expected "StandardVersion")  [return-value]
+ lib/spack/spack/util/remote_file_cache.py:121: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/util/remote_file_cache.py:125: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/util/remote_file_cache.py:126: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/util/remote_file_cache.py:130: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/config.py:1226: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1007: note: "working_dir" defined here
+ lib/spack/spack/util/web.py:420: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1007: note: "working_dir" defined here
+ lib/spack/spack/util/web.py:432: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/oci/opener.py:358: error: Argument 1 to "_try_bearer_challenge" of "OCIAuthHandler" has incompatible type "str | list[Challenge]"; expected "list[Challenge]"  [arg-type]
+ lib/spack/spack/oci/opener.py:360: error: Argument 1 to "_try_basic_challenge" of "OCIAuthHandler" has incompatible type "str | list[Challenge]"; expected "list[Challenge]"  [arg-type]
+ lib/spack/spack/repo.py:1705: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1007: note: "working_dir" defined here
+ lib/spack/spack/repo.py:1260: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/repo.py:1265: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/spec.py:2471: error: Item "tuple[Any | int, ...]" of "tuple[Any, int] | Any | dict[Any, list[DependencySpec]]" has no attribute "items"  [union-attr]
+ lib/spack/spack/spec.py:3479: error: Incompatible types in assignment (expression has type "SpecBuildInterface | Spec", variable has type "Spec")  [assignment]
+ lib/spack/spack/spec.py:3505: error: Incompatible types in assignment (expression has type "SpecBuildInterface | Spec", variable has type "Spec")  [assignment]
+ lib/spack/spack/spec.py:4258: error: Item "SpecBuildInterface" of "Spec | SpecBuildInterface" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/spec.py:4286: error: Incompatible types in assignment (expression has type "VariantValue", variable has type "Spec | SpecBuildInterface")  [assignment]
+ lib/spack/spack/spec.py:4293: error: Item "SpecBuildInterface" of "Spec | SpecBuildInterface" has no attribute "versions"  [union-attr]
+ lib/spack/spack/spec.py:4306: error: Item "SpecBuildInterface" of "Spec | SpecBuildInterface" has no attribute "original_spec_format"  [union-attr]
+ lib/spack/spack/spec.py:4333: error: Argument 1 has incompatible type "Spec | SpecBuildInterface"; expected "Spec"  [arg-type]
+ lib/spack/spack/spec.py:4347: error: Argument 1 has incompatible type "Spec | SpecBuildInterface"; expected "Spec"  [arg-type]
+ lib/spack/spack/spec.py:4354: error: Argument 1 has incompatible type "Spec | SpecBuildInterface"; expected "Spec"  [arg-type]
+ lib/spack/spack/spec.py:4507: error: Argument 1 to "append" of "list" has incompatible type "bool | str"; expected "str"  [arg-type]
+ lib/spack/spack/stage.py:84: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/database.py:1242: error: "Spec" has no attribute "_hash"; maybe "__hash__" or "dag_hash"?  [attr-defined]
+ lib/spack/spack/database.py:1243: error: "Spec" has no attribute "_package_hash"; maybe "package_hash"?  [attr-defined]
+ lib/spack/spack/compilers/libraries.py:396: error: Missing return statement  [return]
+ lib/spack/spack/package_base.py:726: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "package"  [union-attr]
+ lib/spack/spack/package_base.py:987: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/package_base.py:1397: error: Item "Spec" of "Any | Spec" has no attribute "depflag"  [union-attr]
+ lib/spack/spack/install_test.py:134: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:137: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:275: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:320: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:324: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:482: error: Unexpected keyword argument "create" for "working_dir"  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1007: note: "working_dir" defined here
+ lib/spack/spack/install_test.py:556: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:901: error: Incompatible types in assignment (expression has type "Spec", variable has type "None")  [assignment]
+ lib/spack/spack/install_test.py:902: error: Incompatible types in assignment (expression has type "Spec", variable has type "None")  [assignment]
+ lib/spack/spack/install_test.py:997: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/install_test.py:1059: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/environment/environment.py:2461: error: Unexpected keyword argument "encoding" for "write_tmp_and_move"  [call-arg]
+ lib/spack/spack/llnl/util/filesystem.py:1117: note: "write_tmp_and_move" defined here
+ lib/spack/spack/environment/environment.py:2759: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/installer.py:593: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/installer.py:665: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/installer.py:669: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/installer.py:696: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/installer.py:2694: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/solver/asp.py:3109: error: Incompatible types in assignment (expression has type "SpecBuildInterface | Spec", variable has type "Spec | None")  [assignment]
+ lib/spack/spack/bootstrap/core.py:493: error: No return value expected  [return-value]
+ lib/spack/spack/test/util/remote_file_cache.py:69: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/patch.py:307: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "variants"  [union-attr]
+ lib/spack/spack/test/patch.py:308: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "package"  [union-attr]
+ lib/spack/spack/test/config.py:1478: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/config.py:1489: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/concretization/requirements.py:1414: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/requirements.py:1415: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "prefix"  [union-attr]
+ lib/spack/spack/test/concretization/compiler_runtimes.py:73: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dependencies"  [union-attr]
+ lib/spack/spack/test/concretization/compiler_runtimes.py:74: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dependencies"  [union-attr]
+ lib/spack/spack/test/concretization/compiler_runtimes.py:75: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dependencies"  [union-attr]
+ lib/spack/spack/test/conftest.py:1179: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/conftest.py:1216: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/cmd/dev_build.py:438: error: Item "SpecBuildInterface" of "Spec | SpecBuildInterface" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/binary_distribution.py:493: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/binary_distribution.py:494: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/binary_distribution.py:495: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/reporters.py:16: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/reporters.py:27: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/reporters.py:28: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/ci/common.py:68: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/ci/common.py:99: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/database.py:218: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "set_prefix"  [union-attr]
+ lib/spack/spack/test/database.py:224: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/test/database.py:231: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "installed"  [union-attr]
+ lib/spack/spack/test/database.py:232: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "installed_upstream"  [union-attr]
+ lib/spack/spack/test/database.py:355: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/test/database.py:358: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:1462: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "constrain"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:2281: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:2290: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:2295: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:2637: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "dag_hash"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:2721: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:2730: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3621: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3621: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external_path"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3655: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3655: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external_path"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3789: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3789: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3846: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3847: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3848: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3960: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3968: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "external"  [union-attr]
+ lib/spack/spack/test/concretization/core.py:3968: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "satisfies"  [union-attr]
+ lib/spack/spack/test/oci/integration_test.py:345: error: Argument 1 to "_oci_default_tag" has incompatible type "SpecBuildInterface | Spec"; expected "Spec"  [arg-type]
+ lib/spack/spack/test/cmd/clean.py:95: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/cmd/clean.py:96: error: Too many arguments for <lambda>  [call-arg]
+ lib/spack/spack/test/cmd/buildcache.py:524: error: Item "SpecBuildInterface" of "SpecBuildInterface | Spec" has no attribute "package"  [union-attr]

... (truncated 10 lines) ...

spark (https://github.com/apache/spark)
+ python/pyspark/worker.py:336: error: All conditional function variants must have identical signatures  [misc]
+ python/pyspark/worker.py:336: note: Original:
+ python/pyspark/worker.py:336: note:     def get_args(*args: list[Any]) -> list[Any]
+ python/pyspark/worker.py:336: note: Redefinition:
+ python/pyspark/worker.py:336: note:     def get_args(*args: list[Any]) -> zip[tuple[Any, ...]]
+ python/pyspark/worker.py:410: error: All conditional function variants must have identical signatures  [misc]
+ python/pyspark/worker.py:410: note: Original:
+ python/pyspark/worker.py:410: note:     def get_args(*args: Series[Any]) -> list[Any]
+ python/pyspark/worker.py:410: note: Redefinition:
+ python/pyspark/worker.py:410: note:     def get_args(*args: Series[Any]) -> zip[tuple[Any, ...]]

prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/flows.py:2110: error: Overloaded function implementation cannot produce return type of signature 1  [misc]
+ src/prefect/flows.py:2110: error: Overloaded function implementation cannot produce return type of signature 2  [misc]
+ src/prefect/flows.py:2110: error: Overloaded function implementation cannot produce return type of signature 3  [misc]
+ src/prefect/flows.py:2110: error: Overloaded function implementation cannot produce return type of signature 4  [misc]

ppb-vector (https://github.com/ppb/ppb-vector)
+ tests/test_dot.py:83: error: No overload variant of "__rmul__" of "Vector" matches argument type "dict[str, float]"  [operator]
+ tests/test_dot.py:83: note: Possible overload variants:
+ tests/test_dot.py:83: note:     def __rmul__(self, Vector | tuple[SupportsFloat, SupportsFloat] | Sequence[SupportsFloat] | VectorLikeDict, /) -> float
+ tests/test_dot.py:83: note:     def __rmul__(self, SupportsFloat, /) -> Vector
+ tests/test_dot.py:83: note: Left operand is of type "tuple[float, float] | list[float] | dict[str, float]"
+ tests/test_ctor.py:12: error: Argument 1 to "Vector" has incompatible type "tuple[float, float] | list[float] | dict[str, float]"; expected "Vector | tuple[SupportsFloat, SupportsFloat] | Sequence[SupportsFloat] | VectorLikeDict"  [arg-type]
+ tests/test_addition.py:30: error: Unsupported operand types for + ("dict[str, float]" and "Vector")  [operator]
+ tests/test_addition.py:30: note: Left operand is of type "tuple[float, float] | list[float] | dict[str, float]"

graphql-core (https://github.com/graphql-python/graphql-core)
+ tests/language/test_schema_parser.py:286: error: Value of type "DefinitionNode | tuple[DefinitionNode, ...]" is not indexable  [index]
+ tests/language/test_schema_parser.py:293: error: Value of type "DefinitionNode | tuple[DefinitionNode, ...]" is not indexable  [index]
+ tests/language/test_schema_parser.py:315: error: Value of type "DefinitionNode | tuple[DefinitionNode, ...]" is not indexable  [index]
+ tests/language/test_schema_parser.py:322: error: Value of type "DefinitionNode | tuple[DefinitionNode, ...]" is not indexable  [index]
+ tests/language/test_schema_parser.py:399: error: Argument 1 to "schema_extension_node" has incompatible type "tuple[DirectiveNode]"; expected "tuple[ConstDirectiveNode, ...]"  [arg-type]
+ tests/execution/test_subscribe.py:465: error: Item "Awaitable[AsyncIterator[ExecutionResult] | ExecutionResult]" of "Awaitable[AsyncIterator[ExecutionResult] | ExecutionResult] | AsyncIterator[ExecutionResult] | ExecutionResult | Awaitable[AsyncIterable[Any] | ExecutionResult] | AsyncIterable[Any]" has no attribute "errors"  [union-attr]
+ tests/execution/test_subscribe.py:465: error: Item "AsyncIterator[ExecutionResult]" of "Awaitable[AsyncIterator[ExecutionResult] | ExecutionResult] | AsyncIterator[ExecutionResult] | ExecutionResult | Awaitable[AsyncIterable[Any] | ExecutionResult] | AsyncIterable[Any]" has no attribute "errors"  [union-attr]
+ tests/execution/test_subscribe.py:465: error: Item "Awaitable[AsyncIterable[Any] | ExecutionResult]" of "Awaitable[AsyncIterator[ExecutionResult] | ExecutionResult] | AsyncIterator[ExecutionResult] | ExecutionResult | Awaitable[AsyncIterable[Any] | ExecutionResult] | AsyncIterable[Any]" has no attribute "errors"  [union-attr]
+ tests/execution/test_subscribe.py:465: error: Item "AsyncIterable[Any]" of "Awaitable[AsyncIterator[ExecutionResult] | ExecutionResult] | AsyncIterator[ExecutionResult] | ExecutionResult | Awaitable[AsyncIterable[Any] | ExecutionResult] | AsyncIterable[Any]" has no attribute "errors"  [union-attr]
+ tests/execution/test_subscribe.py:465: error: Value of type "Any | list[GraphQLError] | None" is not indexable  [index]

speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)
+ backend/services/user_updater.py:207: error: "float" object is not iterable  [misc]

altair (https://github.com/vega/altair)
+ altair/vegalite/v6/api.py:2132: error: Incompatible types in assignment (expression has type "MutableMapping[Any, Any]", variable has type "dict[str, Any]")  [assignment]
+ altair/vegalite/v6/api.py:3974: error: Incompatible types in assignment (expression has type "<subclass of "altair.vegalite.v6.api.TopLevelMixin" and "altair.utils.schemapi.SchemaBase">", variable has type "_EncodingMixin")  [assignment]
+ altair/vegalite/v6/api.py:3985: error: Incompatible types in assignment (expression has type "<subclass of "altair.vegalite.v6.api.TopLevelMixin" and "altair.utils.schemapi.SchemaBase">", variable has type "_EncodingMixin")  [assignment]
+ tools/update_init_file.py:78: error: Argument 1 to "relevant_attributes" has incompatible type "ThemeRegistry"; expected "dict[str, Any]"  [arg-type]

strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/types/object_type.py:340: error: Overloaded function implementation cannot produce return type of signature 2  [misc]
+ strawberry/types/object_type.py:417: error: Overloaded function implementation cannot produce return type of signature 2  [misc]
+ strawberry/federation/object_type.py:144: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ strawberry/federation/object_type.py:210: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ strawberry/federation/object_type.py:273: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]
+ strawberry/federation/object_type.py:342: error: Overloaded function implementation cannot satisfy signature 2 due to inconsistencies in how they use type variables  [misc]

operator (https://github.com/canonical/operator)
+ ops/_private/harness.py:2820: error: Incompatible types in assignment (expression has type "_SecretRevision | None", variable has type "_SecretRevision")  [assignment]

sockeye (https://github.com/awslabs/sockeye)
+ sockeye/vocab.py:39: error: Argument 1 to "count_tokens" has incompatible type "GzipFile | TextIOWrapper[_WrappedBuffer] | IO[Any]"; expected "Iterable[str]"  [arg-type]
+ sockeye/rerank.py:165: error: Argument "file" to "print" has incompatible type "TextIO | Any | GzipFile | IO[Any]"; expected "SupportsWrite[str] | None"  [arg-type]
+ sockeye/rerank.py:167: error: Argument "file" to "print" has incompatible type "TextIO | Any | GzipFile | IO[Any]"; expected "SupportsWrite[str] | None"  [arg-type]
+ sockeye/data_io.py:387: error: Argument 1 to "parallel_iter" has incompatible type "list[object]"; expected "Sequence[Iterable[Any | None]]"  [arg-type]
+ sockeye/data_io.py:387: error: Argument 2 to "parallel_iter" has incompatible type "list[object]"; expected "Sequence[Iterable[Any | None]]"  [arg-type]
+ sockeye/data_io.py:391: error: "object" has no attribute "write"  [attr-defined]
+ sockeye/data_io.py:394: error: "object" has no attribute "write"  [attr-defined]
+ sockeye/lexicon.py:55: error: Argument 1 to "rstrip" of "bytes" has incompatible type "str"; expected "Buffer | None"  [arg-type]
+ sockeye/lexicon.py:55: error: Argument 1 to "split" of "bytes" has incompatible type "str"; expected "Buffer | None"  [arg-type]
+ sockeye/lexicon.py:57: error: Argument 1 to "get" of "dict" has incompatible type "bytes | str | Any"; expected "str"  [arg-type]
+ sockeye/lexicon.py:58: error: Argument 1 to "get" of "dict" has incompatible type "bytes | str | Any"; expected "str"  [arg-type]
+ sockeye/convert_deepspeed.py:50: error: Argument 2 to "join" has incompatible type "bytes | str | Any"; expected "str"  [arg-type]
+ sockeye/checkpoint_decoder.py:94: error: "object" has no attribute "readlines"  [attr-defined]
+ sockeye/checkpoint_decoder.py:95: error: "object" has no attribute "readlines"  [attr-defined]
- sockeye/translate.py:190: error: Incompatible types in assignment (expression has type "tuple[Any, ...]", variable has type "list[str]")  [assignment]
+ sockeye/checkpoint_decoder.py:176: error: No overload variant of "print" matches argument types "str", "object"  [call-overload]
+ sockeye/checkpoint_decoder.py:176: note: Possible overload variants:
+ sockeye/checkpoint_decoder.py:176: note:     def print(*values: object, sep: str | None = ..., end: str | None = ..., file: SupportsWrite[str] | None = ..., flush: Literal[False] = ...) -> None
+ sockeye/checkpoint_decoder.py:176: note:     def print(*values: object, sep: str | None = ..., end: str | None = ..., file: _SupportsWriteAndFlush[str] | None = ..., flush: bool) -> None
+ sockeye/checkpoint_decoder.py:237: error: Argument "file" to "print" has incompatible type "GzipFile | TextIOWrapper[_WrappedBuffer] | IO[Any]"; expected "SupportsWrite[str] | None"  [arg-type]

core (https://github.com/home-assistant/core)
+ homeassistant/components/freebox/sensor.py:245: error: Incompatible return value type (got "Any | None", expected "int")  [return-value]
+ homeassistant/components/lutron_caseta/logbook.py:49: error: Value of type "LutronKeypad | None" is not indexable  [index]

pytest (https://github.com/pytest-dev/pytest)
+ src/_pytest/capture.py:989: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager")  [assignment]
+ src/_pytest/capture.py:1018: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager")  [assignment]
+ src/_pytest/capture.py:1051: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager")  [assignment]
+ src/_pytest/capture.py:1081: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager")  [assignment]
+ src/_pytest/capture.py:1109: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager")  [assignment]
+ src/_pytest/capture.py:1138: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager")  [assignment]
+ src/_pytest/doctest.py:311: error: "object" has no attribute "suspend_global_capture"  [attr-defined]
+ src/_pytest/doctest.py:312: error: "object" has no attribute "read_global_capture"  [attr-defined]
+ src/_pytest/debugging.py:247: error: Incompatible types in assignment (expression has type "object", variable has type "CaptureManager | None")  [assignment]
+ src/_pytest/debugging.py:292: error: "object" has no attribute "suspend_global_capture"  [attr-defined]
+ src/_pytest/debugging.py:293: error: "object" has no attribute "read_global_capture"  [attr-defined]
+ src/_pytest/debugging.py:343: error: "object" has no attribute "_tw"  [attr-defined]
+ src/_pytest/subtests.py:320: error: Incompatible types in assignment (expression has type "object", variable has type "LoggingPlugin | None")  [assignment]
- testing/test_collection.py:87: error: Item "None" of Module | None has no attribute "module"  [union-attr]
+ testing/test_runner.py:509: error: Argument 1 to "collect_one_node" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/test_debugging.py:33: error: "RunResult" has no attribute "reprec"  [attr-defined]
+ testing/test_config.py:1518: error: "object" has no attribute "x"  [attr-defined]
+ testing/test_collection.py:49: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/test_collection.py:51: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/test_collection.py:58: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/test_collection.py:71: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/test_collection.py:81: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/test_assertion.py:409: error: Argument 1 to "pytest_assertrepr_compare" has incompatible type "test_assertion.Config@27"; expected "_pytest.config.Config"  [arg-type]
- testing/test_collection.py:88: error: Item "None" of Module | None has no attribute "cls"  [union-attr]
+ testing/acceptance_test.py:1464: error: Item "None" of "IO[Any] | None" has no attribute "close"  [union-attr]
- testing/test_collection.py:89: error: Item "None" of Module | None has no attribute "instance"  [union-attr]
+ testing/acceptance_test.py:1466: error: Item "None" of "IO[Any] | None" has no attribute "read"  [union-attr]
+ testing/acceptance_test.py:1470: error: Item "None" of "IO[Any] | None" has no attribute "close"  [union-attr]
+ testing/python/collect.py:23: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:75: error: Item "Item" of "Collector | Item" has no attribute "CollectError"  [union-attr]
+ testing/python/collect.py:75: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:76: error: Item "Item" of "Collector | Item" has no attribute "CollectError"  [union-attr]
+ testing/python/collect.py:76: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:80: error: Item "Collector" of "Collector | Item" has no attribute "obj"  [union-attr]
+ testing/python/collect.py:80: error: Item "Item" of "Collector | Item" has no attribute "obj"  [union-attr]
+ testing/python/collect.py:237: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:238: error: Argument 1 to "len" has incompatible type "Iterable[Item | Collector] | Any"; expected "Sized"  [arg-type]
+ testing/python/collect.py:669: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:670: error: Value of type "Iterable[Item | Collector] | Any" is not indexable  [index]
+ testing/python/collect.py:671: error: Value of type "Iterable[Item | Collector] | Any" is not indexable  [index]
+ testing/python/collect.py:672: error: Value of type "Iterable[Item | Collector] | Any" is not indexable  [index]
+ testing/python/collect.py:673: error: Value of type "Iterable[Item | Collector] | Any" is not indexable  [index]
+ testing/python/collect.py:688: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:688: error: Value of type "Iterable[Item | Collector] | Any" is not indexable  [index]
+ testing/python/collect.py:831: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/python/collect.py:833: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/python/collect.py:840: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/python/collect.py:870: error: Item "Item" of "Collector | Item" has no attribute "collect"  [union-attr]
+ testing/python/collect.py:871: error: Argument 1 to "len" has incompatible type "Iterable[Item | Collector] | Any"; expected "Sized"  [arg-type]
+ testing/python/collect.py:1106: error: No overload variant of "perform_collect" of "Session" matches argument types "list[str]", "int"  [call-overload]
+ testing/python/collect.py:1106: note: Possible overload variants:
+ testing/python/collect.py:1106: note:     def perform_collect(self, args: Sequence[str] | None = ..., genitems: Literal[True] = ...) -> Sequence[Item]
+ testing/python/collect.py:1106: note:     def perform_collect(self, args: Sequence[str] | None = ..., genitems: bool = ...) -> Sequence[Item | Collector]
+ testing/python/collect.py:1281: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ testing/python/collect.py:1310: error: Argument 1 to "collect_by_name" of "Pytester" has incompatible type "Collector | Item"; expected "Collector"  [arg-type]
+ src/_pytest/setuponly.py:69: error: "object" has no attribute "suspend_global_capture"  [attr-defined]
+ src/_pytest/setuponly.py:91: error: "object" has no attribute "resume_global_capture"  [attr-defined]
+ src/_pytest/pastebin.py:44: error: "object" has no attribute "_tw"  [attr-defined]
+ src/_pytest/pastebin.py:52: error: "object" has no attribute "_tw"  [attr-defined]
+ src/_pytest/pastebin.py:65: error: "object" has no attribute "_tw"  [attr-defined]
+ src/_pytest/pastebin.py:67: error: "object" has no attribute "write_sep"  [attr-defined]
+ src/_pytest/pastebin.py:69: error: "object" has no attribute "write_line"  [attr-defined]

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/coretypes/multidict.py:117: error: Signature of "keys" incompatible with supertype "typing.Mapping"  [override]
+ mitmproxy/coretypes/multidict.py:117: note:      Superclass:
+ mitmproxy/coretypes/multidict.py:117: note:          def keys(self) -> KeysView[KT]
+ mitmproxy/coretypes/multidict.py:117: note:      Subclass:
+ mitmproxy/coretypes/multidict.py:117: note:          def keys(self, multi: bool = ...) -> Generator[Any, None, None]
+ mitmproxy/coretypes/multidict.py:126: error: Signature of "values" incompatible with supertype "typing.Mapping"  [override]
+ mitmproxy/coretypes/multidict.py:126: note:      Superclass:
+ mitmproxy/coretypes/multidict.py:126: note:          def values(self) -> ValuesView[VT]
+ mitmproxy/coretypes/multidict.py:126: note:      Subclass:
+ mitmproxy/coretypes/multidict.py:126: note:          def values(self, multi: bool = ...) -> Generator[Any, None, None]
+ mitmproxy/coretypes/multidict.py:135: error: Signature of "items" incompatible with supertype "typing.Mapping"  [override]
+ mitmproxy/coretypes/multidict.py:135: note:      Superclass:
+ mitmproxy/coretypes/multidict.py:135: note:          def items(self) -> ItemsView[KT, VT]
+ mitmproxy/coretypes/multidict.py:135: note:      Subclass:
+ mitmproxy/coretypes/multidict.py:135: note:          def items(self, multi: bool = ...) -> tuple[tuple[KT, VT], ...] | ItemsView[KT, VT]
+ mitmproxy/tools/console/common.py:538: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, float, TruncatedText]"; expected "tuple[str, int, Any]"  [arg-type]
+ mitmproxy/tools/console/common.py:545: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, float, TruncatedText]"; expected "tuple[str, int, Any]"  [arg-type]
+ mitmproxy/tools/console/common.py:585: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, float, Any]"; expected "tuple[str, int, Any]"  [arg-type]
+ mitmproxy/tools/console/common.py:645: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, float, Any]"; expected "tuple[str, int, Any]"  [arg-type]
+ mitmproxy/tools/console/common.py:647: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, float, Any]"; expected "tuple[str, int, Any]"  [arg-type]
+ mitmproxy/tools/console/common.py:700: error: Argument 1 to "append" of "list" has incompatible type "tuple[str, float, TruncatedText]"; expected "tuple[str, int, Any]"  [arg-type]
+ mitmproxy/addons/stickycookie.py:66: error: Argument 1 to "ckey" has incompatible type "MultiDict[str, str | None]"; expected "dict[str, str]"  [arg-type]

sympy (https://github.com/sympy/sympy)
+ sympy/parsing/sympy_parser.py:867: error: Argument 1 to "_transform_equals_sign" has incompatible type "list[tuple[int, str] | AppliedFunction]"; expected "list[tuple[int, str]]"  [arg-type]
+ sympy/parsing/sympy_parser.py:868: error: Argument 1 to "_flatten" has incompatible type "list[tuple[int, str]]"; expected "list[tuple[int, str] | AppliedFunction]"  [arg-type]
+ sympy/parsing/sympy_parser.py:868: note: "list" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
+ sympy/parsing/sympy_parser.py:868: note: Consider using "Sequence" instead, which is covariant
- sympy/integrals/manualintegrate.py:2026: error: Unused "type: ignore" comment  [unused-ignore]
+ sympy/integrals/manualintegrate.py:2080: error: Argument 4 to "RewriteRule" has incompatible type "Rule | None"; expected "Rule"  [arg-type]
+ sympy/integrals/manualintegrate.py:2082: error: Incompatible types in assignment (expression has type "Rule | None", variable has type "RewriteRule")  [assignment]
+ sympy/polys/benchmarks/bench_groebnertools.py:16: error: Unsupported operand types for ** ("PolyRing[Any]" and "int")  [operator]
+ sympy/polys/benchmarks/bench_groebnertools.py:16: note: Left operand is of type "PolyRing[Any] | Any"
+ sympy/polys/benchmarks/bench_groebnertools.py:16: error: Unsupported left operand type for * ("PolyRing[Any]")  [operator]
+ sympy/polys/benchmarks/bench_groebnertools.py:16: note: Both left and right operands are unions
+ sympy/polys/benchmarks/bench_groebnertools.py:19: error: Unsupported operand types for ** ("PolyRing[Any]" and "int")  [operator]
+ sympy/polys/benchmarks/bench_groebnertools.py:19: note: Left operand is of type "PolyRing[Any] | Any"
+ sympy/polys/benchmarks/bench_groebnertools.py:19: error: Unsupported left operand type for * ("PolyRing[Any]")  [operator]
+ sympy/polys/benchmarks/bench_groebnertools.py:19: note: Both left and right operands are unions

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/wrapper/_implementations.py:516: error: Incompatible types in assignment (expression has type "Zen[P, R]", variable has type "_Wrapped[P, R, [Any], Any]")  [assignment]
+ src/hydra_zen/wrapper/_implementations.py:516: error: Incompatible types in assignment (expression has type "Zen[P, R]", variable has type "_Wrapped[P, R, [Any], R]")  [assignment]
- tests/annotations/declarations.py:895: error: Argument 1 to "__call__" of "PBuilds" has incompatible type "Callable[[int], Any]"; expected "def (*Never, **Never) -> Never"  [arg-type]
+ tests/annotations/declarations.py:895: error: Argument 1 to "__call__" of "PBuilds" has incompatible type "Callable[[int], int]"; expected "def (*Never, **Never) -> Never"  [arg-type]

setuptools (https://github.com/pypa/setuptools)
+ setuptools/config/pyprojecttoml.py:313: error: Argument 1 to "version" has incompatible type "Any | None"; expected "Callable[..., Any] | Iterable[str | int] | str"  [arg-type]
+ setuptools/dist.py:754: error: "bool" object is not iterable  [misc]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/_config/config.py:756: error: Item "None" of "RegisteredOption | None" has no attribute "doc"  [union-attr]
+ pandas/_config/config.py:757: error: Item "None" of "RegisteredOption | None" has no attribute "doc"  [union-attr]
+ pandas/core/accessor.py:141: error: Incompatible types in assignment (expression has type "_Wrapped[[VarArg(Any), KwArg(Any)], Any, [Any, VarArg(Any), KwArg(Any)], Any]", variable has type "property")  [assignment]
+ pandas/core/nanops.py:439: error: Incompatible return value type (got "object | Any", expected "str | bytes | date | datetime | timedelta | <7 more items> | Interval[Any] | complex | integer[Any] | floating[Any] | complexfloating[Any, Any] | ndarray[tuple[Any, ...], dtype[Any]]")  [return-value]
+ pandas/core/nanops.py:441: error: Incompatible return value type (got "object | Any", expected "str | bytes | date | datetime | timedelta | <7 more items> | Interval[Any] | complex | integer[Any] | floating[Any] | complexfloating[Any, Any] | ndarray[tuple[Any, ...], dtype[Any]]")  [return-value]
+ pandas/core/arrays/period.py:964: error: Signature of "astype" incompatible with supertype "pandas.core.arrays.base.ExtensionArray"  [override]
+ pandas/core/arrays/period.py:964: note:      Superclass:
+ pandas/core/arrays/period.py:964: note:          @overload
+ pandas/core/arrays/period.py:964: note:          def astype(self, dtype: type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/period.py:964: note:          @overload
+ pandas/core/arrays/period.py:964: note:          def astype(self, dtype: ExtensionDtype, copy: bool = ...) -> ExtensionArray
+ pandas/core/arrays/period.py:964: note:          @overload
+ pandas/core/arrays/period.py:964: note:          def astype(self, dtype: ExtensionDtype | type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/period.py:964: note:      Subclass:
+ pandas/core/arrays/period.py:964: note:          def astype(self, dtype: Any, copy: bool = ...) -> PeriodArray | DatetimeArray | Any
+ pandas/core/dtypes/cast.py:498: error: Incompatible types in assignment (expression has type "dtype[datetime64[date | int | None]] | DatetimeTZDtype", variable has type "dtype[Any]")  [assignment]
+ pandas/core/algorithms.py:819: error: Argument 2 to "where" has incompatible type "object | Any"; expected "None"  [arg-type]
+ pandas/core/arrays/timedeltas.py:356: error: Signature of "astype" incompatible with supertype "pandas.core.arrays.base.ExtensionArray"  [override]
+ pandas/core/arrays/timedeltas.py:356: note:      Superclass:
+ pandas/core/arrays/timedeltas.py:356: note:          @overload
+ pandas/core/arrays/timedeltas.py:356: note:          def astype(self, dtype: type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/timedeltas.py:356: note:          @overload
+ pandas/core/arrays/timedeltas.py:356: note:          def astype(self, dtype: ExtensionDtype, copy: bool = ...) -> ExtensionArray
+ pandas/core/arrays/timedeltas.py:356: note:          @overload
+ pandas/core/arrays/timedeltas.py:356: note:          def astype(self, dtype: ExtensionDtype | type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/timedeltas.py:356: note:      Subclass:
+ pandas/core/arrays/timedeltas.py:356: note:          def astype(self, dtype: Any, copy: bool = ...) -> TimedeltaArray | Any
+ pandas/core/arrays/timedeltas.py:485: error: Signature of "__mul__" incompatible with supertype "pandas.core.arrays.datetimelike.DatetimeLikeArrayMixin"  [override]
+ pandas/core/arrays/timedeltas.py:485: note:      Superclass:
+ pandas/core/arrays/timedeltas.py:485: note:          def (*Any, **Any) -> Never
+ pandas/core/arrays/timedeltas.py:485: note:      Subclass:
+ pandas/core/arrays/timedeltas.py:485: note:          def __mul__(self, Any, /) -> TimedeltaArray
+ pandas/core/arrays/base.py:1000: error: Incompatible return value type (got "ndarray[tuple[Any, ...], dtype[Any]] | Any | int", expected "int")  [return-value]
+ pandas/core/arrays/base.py:1034: error: Incompatible return value type (got "ndarray[tuple[Any, ...], dtype[Any]] | Any | int", expected "int")  [return-value]
+ pandas/core/arrays/masked.py:1122: error: Return type "IntegerArray | FloatingArray" of "_rank" incompatible with return type "ndarray[tuple[Any, ...], dtype[float64]]" in supertype "pandas.core.arrays.base.ExtensionArray"  [override]
+ pandas/core/arrays/masked.py:1521: error: Incompatible return value type (got "tuple[Any, Any] | FloatingArray | BooleanArray | TimedeltaArray | IntegerArray | ndarray[tuple[Any, ...], dtype[Any]]", expected "BaseMaskedArray")  [return-value]
+ pandas/core/arrays/datetimes.py:699: error: Signature of "astype" incompatible with supertype "pandas.core.arrays.base.ExtensionArray"  [override]
+ pandas/core/arrays/datetimes.py:699: note:      Superclass:
+ pandas/core/arrays/datetimes.py:699: note:          @overload
+ pandas/core/arrays/datetimes.py:699: note:          def astype(self, dtype: type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/datetimes.py:699: note:          @overload
+ pandas/core/arrays/datetimes.py:699: note:          def astype(self, dtype: ExtensionDtype, copy: bool = ...) -> ExtensionArray
+ pandas/core/arrays/datetimes.py:699: note:          @overload
+ pandas/core/arrays/datetimes.py:699: note:          def astype(self, dtype: ExtensionDtype | type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/datetimes.py:699: note:      Subclass:
+ pandas/core/arrays/datetimes.py:699: note:          def astype(self, dtype: Any, copy: bool = ...) -> DatetimeArray | Any | PeriodArray
+ pandas/core/arrays/datetimes.py:2401: error: Incompatible return value type (got "Timedelta | NaTType | TimedeltaArray", expected "Timedelta")  [return-value]
+ pandas/core/arrays/_mixins.py:330: error: Argument "mask" has incompatible type "ndarray[tuple[Any, ...], dtype[Any]] | ExtensionArraySupportsAnyAll"; expected "ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | None"  [arg-type]
+ pandas/core/arrays/numpy_.py:272: error: Signature of "astype" incompatible with supertype "pandas.core.arrays.base.ExtensionArray"  [override]
+ pandas/core/arrays/numpy_.py:272: note:      Superclass:
+ pandas/core/arrays/numpy_.py:272: note:          @overload
+ pandas/core/arrays/numpy_.py:272: note:          def astype(self, dtype: type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/numpy_.py:272: note:          @overload
+ pandas/core/arrays/numpy_.py:272: note:          def astype(self, dtype: ExtensionDtype, copy: bool = ...) -> ExtensionArray
+ pandas/core/arrays/numpy_.py:272: note:          @overload
+ pandas/core/arrays/numpy_.py:272: note:          def astype(self, dtype: ExtensionDtype | type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/numpy_.py:272: note:      Subclass:
+ pandas/core/arrays/numpy_.py:272: note:          def astype(self, dtype: Any, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/string_.py:913: error: Signature of "astype" incompatible with supertype "pandas.core.arrays.base.ExtensionArray"  [override]
+ pandas/core/arrays/string_.py:913: note:      Superclass:
+ pandas/core/arrays/string_.py:913: note:          @overload
+ pandas/core/arrays/string_.py:913: note:          def astype(self, dtype: type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/string_.py:913: note:          @overload
+ pandas/core/arrays/string_.py:913: note:          def astype(self, dtype: ExtensionDtype, copy: bool = ...) -> ExtensionArray
+ pandas/core/arrays/string_.py:913: note:          @overload
+ pandas/core/arrays/string_.py:913: note:          def astype(self, dtype: ExtensionDtype | type[Any] | dtype[Any] | _HasDType[dtype[Any]] | _HasNumPyDType[dtype[Any]] | tuple[Any, Any] | list[Any] | _DTypeDict | str, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/string_.py:913: note:      Subclass:
+ pandas/core/arrays/string_.py:913: note:          def astype(self, dtype: Any, copy: bool = ...) -> ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]
+ pandas/core/arrays/string_.py:1232: error: Incompatible return value type (got "Any | IntegerArray | BooleanArray", expected "Self")  [return-value]

... (truncated 446 lines) ...```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants