Skip to content

Conversation

@ibraheemdev
Copy link
Member

@ibraheemdev ibraheemdev commented Oct 17, 2025

Summary

Resolves astral-sh/ty#1228.

@ibraheemdev ibraheemdev added the ty Multi-file analysis & type inference label Oct 17, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2025

Diagnostic diff on typing conformance tests

Changes were detected when running ty on typing conformance tests
--- old-output.txt	2025-11-10 21:47:35.253883781 +0000
+++ new-output.txt	2025-11-10 21:47:38.684915587 +0000
@@ -16,7 +16,6 @@
 aliases_explicit.py:59:5: error[type-assertion-failure] Argument does not have asserted type `int | str | None | list[list[int]]`
 aliases_explicit.py:60:5: error[type-assertion-failure] Argument does not have asserted type `(...) -> None`
 aliases_explicit.py:61:5: error[type-assertion-failure] Argument does not have asserted type `int | str`
-aliases_explicit.py:98:1: error[type-assertion-failure] Argument does not have asserted type `list[str]`
 aliases_explicit.py:101:6: error[call-non-callable] Object of type `UnionType` is not callable
 aliases_implicit.py:54:24: error[invalid-type-form] List literals are not allowed in this context in a type expression: Did you mean `tuple[str, str]`?
 aliases_implicit.py:60:5: error[type-assertion-failure] Argument does not have asserted type `int | str`
@@ -38,7 +37,6 @@
 aliases_implicit.py:116:10: error[invalid-type-form] Variable of type `Literal[1]` is not allowed in a type expression
 aliases_implicit.py:118:10: error[invalid-type-form] Variable of type `Literal["int"]` is not allowed in a type expression
 aliases_implicit.py:119:10: error[invalid-type-form] Variable of type `Literal["int | str"]` is not allowed in a type expression
-aliases_implicit.py:128:1: error[type-assertion-failure] Argument does not have asserted type `list[str]`
 aliases_implicit.py:133:6: error[call-non-callable] Object of type `UnionType` is not callable
 aliases_newtype.py:15:1: error[type-assertion-failure] Argument does not have asserted type `int`
 aliases_newtype.py:18:1: error[invalid-assignment] Object of type `NewType` is not assignable to `type`
@@ -570,11 +568,8 @@
 generics_syntax_scoping.py:116:13: error[type-assertion-failure] Argument does not have asserted type `TypeVar`
 generics_syntax_scoping.py:121:9: error[type-assertion-failure] Argument does not have asserted type `int | float | complex`
 generics_syntax_scoping.py:124:13: error[type-assertion-failure] Argument does not have asserted type `int | float | complex`
-generics_type_erasure.py:28:1: error[type-assertion-failure] Argument does not have asserted type `Node[int]`
-generics_type_erasure.py:30:1: error[type-assertion-failure] Argument does not have asserted type `Node[str]`
 generics_type_erasure.py:38:16: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `Literal[""]`
 generics_type_erasure.py:40:16: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str | None`, found `Literal[0]`
-generics_type_erasure.py:47:1: error[type-assertion-failure] Argument does not have asserted type `int`
 generics_type_erasure.py:56:1: error[type-assertion-failure] Argument does not have asserted type `bytes`
 generics_typevartuple_args.py:16:34: error[invalid-return-type] Function always implicitly returns `None`, which is not assignable to return type `tuple[@Todo(PEP 646), ...]`
 generics_typevartuple_args.py:20:1: error[type-assertion-failure] Argument does not have asserted type `tuple[int, str]`
@@ -700,6 +695,7 @@
 literals_literalstring.py:79:21: error[invalid-return-type] Function always implicitly returns `None`, which is not assignable to return type `bool`
 literals_literalstring.py:120:22: error[invalid-argument-type] Argument to function `literal_identity` is incorrect: Argument type `str` does not satisfy upper bound `LiteralString` of type variable `TLiteral`
 literals_literalstring.py:134:51: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Argument type `str` does not satisfy upper bound `LiteralString` of type variable `T`
+literals_literalstring.py:134:51: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `LiteralString`, found `str`
 literals_literalstring.py:167:1: error[type-assertion-failure] Argument does not have asserted type `A`
 literals_literalstring.py:171:5: error[invalid-assignment] Object of type `list[LiteralString]` is not assignable to `list[str]`
 literals_parameterizations.py:41:15: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
@@ -1003,5 +999,5 @@
 typeddicts_usage.py:28:17: error[missing-typed-dict-key] Missing required key 'name' in TypedDict `Movie` constructor
 typeddicts_usage.py:28:18: error[invalid-key] Invalid key for TypedDict `Movie`: Unknown key "title"
 typeddicts_usage.py:40:24: error[invalid-type-form] The special form `typing.TypedDict` is not allowed in type expressions. Did you mean to use a concrete TypedDict or `collections.abc.Mapping[str, object]` instead?
-Found 1005 diagnostics
+Found 1001 diagnostics
 WARN A fatal error occurred while checking some files. Not all project files were analyzed. See the diagnostics list above for details.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2025

mypy_primer results

Changes were detected when running on open source projects
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/utils/python.py:152:13: error[invalid-assignment] Method `__setitem__` of type `bound method WeakKeyDictionary[typing.TypeVar, _T@memoizemethod_noargs].__setitem__(key: typing.TypeVar, value: _T@memoizemethod_noargs) -> None` cannot be called with a key of type `_SelfT@new_method` and a value of type `_T@memoizemethod_noargs` on object of type `WeakKeyDictionary[typing.TypeVar, _T@memoizemethod_noargs]`
+ scrapy/utils/python.py:153:16: error[invalid-argument-type] Method `__getitem__` of type `bound method WeakKeyDictionary[typing.TypeVar, _T@memoizemethod_noargs].__getitem__(key: typing.TypeVar) -> _T@memoizemethod_noargs` cannot be called with key of type `_SelfT@new_method` on object of type `WeakKeyDictionary[typing.TypeVar, _T@memoizemethod_noargs]`
+ tests/mockserver/http_base.py:49:28: error[unresolved-attribute] Object of type `str` has no attribute `decode`
- tests/mockserver/http_base.py:49:28: warning[possibly-missing-attribute] Attribute `readline` may be missing on object of type `IO[bytes] | None`
+ tests/mockserver/http_base.py:49:28: warning[possibly-missing-attribute] Attribute `readline` may be missing on object of type `IO[str] | None`
+ tests/mockserver/http_base.py:53:29: error[unresolved-attribute] Object of type `str` has no attribute `decode`
- tests/mockserver/http_base.py:53:29: warning[possibly-missing-attribute] Attribute `readline` may be missing on object of type `IO[bytes] | None`
+ tests/mockserver/http_base.py:53:29: warning[possibly-missing-attribute] Attribute `readline` may be missing on object of type `IO[str] | None`
- Found 1700 diagnostics
+ Found 1704 diagnostics

boostedblob (https://github.com/hauntsaninja/boostedblob)
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | type[Action]`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `int | str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `Iterable[Unknown] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `bool`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | tuple[str, ...] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:662:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | type[Action]`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `int | str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `Iterable[Unknown] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `bool`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | tuple[str, ...] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:674:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `int | str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `Iterable[Unknown] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `bool`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | type[Action]`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | tuple[str, ...] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:687:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | type[Action]`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `int | str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `Iterable[Unknown] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `bool`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | tuple[str, ...] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:708:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | type[Action]`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `int | str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `Iterable[Unknown] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `bool`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | tuple[str, ...] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:720:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | type[Action]`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `int | str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `Iterable[Unknown] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `bool`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | tuple[str, ...] | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str | None`, found `<class 'int'> | str | int`
- boostedblob/cli.py:752:45: error[invalid-argument-type] Argument to bound method `add_argument` is incorrect: Expected `str`, found `<class 'int'> | str | int`
- Found 79 diagnostics
+ Found 31 diagnostics

dulwich (https://github.com/dulwich/dulwich)
- dulwich/pack.py:733:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[tuple[bytes, int, int | None]]`, found `list[tuple[bytes, int, int]]`
- Found 174 diagnostics
+ Found 173 diagnostics

porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/run/no_terminal.py:106:13: error[invalid-assignment] Object of type `Popen[str]` is not assignable to attribute `_shell_process` of type `Popen[bytes] | None`
- porcupine/plugins/run/no_terminal.py:121:16: warning[possibly-missing-attribute] Attribute `stdout` may be missing on object of type `Popen[bytes] | None`
- porcupine/plugins/run/no_terminal.py:129:18: warning[possibly-missing-attribute] Attribute `wait` may be missing on object of type `Popen[bytes] | None`
- Found 24 diagnostics
+ Found 21 diagnostics

mkosi (https://github.com/systemd/mkosi)
- mkosi/distribution/rhel.py:98:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:98:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:98:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:98:17: error[invalid-argument-type] Argument is incorrect: Expected `int | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:104:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:104:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:104:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:104:17: error[invalid-argument-type] Argument is incorrect: Expected `int | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:110:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:110:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:110:17: error[invalid-argument-type] Argument is incorrect: Expected `Path | None`, found `tuple[str, ...] | Unknown`
- mkosi/distribution/rhel.py:110:17: error[invalid-argument-type] Argument is incorrect: Expected `int | None`, found `tuple[str, ...] | Unknown`
- Found 100 diagnostics
+ Found 88 diagnostics

aiohttp-devtools (https://github.com/aio-libs/aiohttp-devtools)
- tests/test_runserver_watch.py:108:5: error[invalid-assignment] Object of type `set[tuple[MagicMock, str]]` is not assignable to `set[tuple[WebSocketResponse, str]]`
- Found 44 diagnostics
+ Found 43 diagnostics

vision (https://github.com/pytorch/vision)
- torchvision/datasets/_stereo_matching.py:74:13: error[invalid-assignment] Object of type `list[str]` is not assignable to `list[None | str]`
- torchvision/transforms/functional.py:1226:60: error[invalid-argument-type] Argument to function `_get_inverse_affine_matrix` is incorrect: Expected `list[int | float]`, found `list[int] | list[Unknown]`
+ torchvision/transforms/functional.py:1226:60: error[invalid-argument-type] Argument to function `_get_inverse_affine_matrix` is incorrect: Expected `list[int | float]`, found `list[int]`
- Found 1502 diagnostics
+ Found 1501 diagnostics

mitmproxy (https://github.com/mitmproxy/mitmproxy)
- mitmproxy/addons/dumper.py:38:1: error[invalid-assignment] Object of type `dict[Unknown | str, Unknown | dict[str, str] | dict[str, bool]]` is not assignable to `dict[str, dict[str, str | bool]]`
- mitmproxy/addons/export.py:159:1: error[invalid-assignment] Object of type `dict[str, ((f: Flow) -> str) | ((f: Flow) -> bytes)]` is not assignable to `dict[str, (Flow, /) -> str | bytes]`
- mitmproxy/tools/web/app.py:705:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, str | None].__setitem__(key: str, value: str | None, /) -> None` cannot be called with a key of type `Literal["from_client"]` and a value of type `bool` on object of type `dict[str, str | None]`
- mitmproxy/tools/web/app.py:707:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, str | None].__setitem__(key: str, value: str | None, /) -> None` cannot be called with a key of type `Literal["timestamp"]` and a value of type `int | float` on object of type `dict[str, str | None]`
- Found 1893 diagnostics
+ Found 1889 diagnostics

antidote (https://github.com/Finistere/antidote)
- src/antidote/core/wiring.py:150:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, Methods | frozenset[str] | Mapping[str, object] | bool].__setitem__(key: str, value: Methods | frozenset[str] | Mapping[str, object] | bool, /) -> None` cannot be called with a key of type `Literal["methods"]` and a value of type `Methods | Iterable[str]` on object of type `dict[str, Methods | frozenset[str] | Mapping[str, object] | bool]`
- src/antidote/core/wiring.py:158:23: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Methods | Iterable[str]`, found `Methods | frozenset[str] | Mapping[str, object] | bool`
- src/antidote/core/wiring.py:158:23: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Mapping[str, object] | None`, found `Methods | frozenset[str] | Mapping[str, object] | bool`
- src/antidote/core/wiring.py:158:23: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `Methods | frozenset[str] | Mapping[str, object] | bool`
- src/antidote/core/wiring.py:158:23: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `bool`, found `Methods | frozenset[str] | Mapping[str, object] | bool`
- Found 320 diagnostics
+ Found 315 diagnostics

psycopg (https://github.com/psycopg/psycopg)
- psycopg_pool/psycopg_pool/pool.py:249:17: error[invalid-assignment] Object of type `WaitingClient[Connection[@Todo]]` is not assignable to `WaitingClient[CT@ConnectionPool]`
- psycopg_pool/psycopg_pool/pool_async.py:281:17: error[invalid-assignment] Object of type `WaitingClient[AsyncConnection[@Todo]]` is not assignable to `WaitingClient[ACT@AsyncConnectionPool]`
- Found 668 diagnostics
+ Found 666 diagnostics

mypy (https://github.com/python/mypy)
- mypy/checker.py:2800:13: error[invalid-assignment] Object of type `list[str]` is not assignable to `list[str | None]`
- mypy/meet.py:280:16: error[invalid-return-type] Return type does not match returned value: expected `list[Type]`, found `list[CallableType]`
- mypyc/ir/func_ir.py:353:5: error[invalid-assignment] Object of type `list[Register]` is not assignable to `list[Value]`
- mypyc/ir/func_ir.py:381:5: error[invalid-assignment] Object of type `list[Register]` is not assignable to `list[Value]`
- Found 1837 diagnostics
+ Found 1833 diagnostics

Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/annotations.py:1521:13: error[invalid-assignment] Object of type `dict[str, _ChoiceT@__init__]` is not assignable to attribute `_choices` of type `dict[str, int | float | str]`
+ tanjun/dependencies/reloaders.py:364:75: error[unsupported-operator] Operator `-` is unsupported between objects of type `set[Path]` and `set[str] | set[Path]`

scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/datasets/_openml.py:569:9: warning[possibly-missing-attribute] Attribute `update` may be missing on object of type `str | dict[Unknown, Unknown] | list[str] | tuple[int, int] | None`
- sklearn/externals/array_api_extra/_lib/_lazy.py:215:31: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- Found 2565 diagnostics
+ Found 2563 diagnostics

discord.py (https://github.com/Rapptz/discord.py)
- discord/app_commands/tree.py:754:13: error[invalid-assignment] Object of type `list[Command[Unknown, Unknown, Unknown] | Group]` is not assignable to `list[Command[Any, @Todo, Any] | Group | ContextMenu]`
- discord/app_commands/tree.py:764:17: error[invalid-assignment] Object of type `list[Command[Unknown, Unknown, Unknown] | Group]` is not assignable to `list[Command[Any, @Todo, Any] | Group | ContextMenu]`
- discord/client.py:365:16: error[invalid-return-type] Return type does not match returned value: expected `ConnectionState[Self@_get_state]`, found `ConnectionState[Client]`
- discord/interactions.py:386:16: error[invalid-return-type] Return type does not match returned value: expected `InteractionResponse[ClientT@Interaction]`, found `InteractionResponse[Client]`
- Found 508 diagnostics
+ Found 504 diagnostics

optuna (https://github.com/optuna/optuna)
- optuna/visualization/_parallel_coordinate.py:195:13: error[invalid-assignment] Object of type `list[int]` is not assignable to `list[int | float]`
- optuna/visualization/_parallel_coordinate.py:229:17: error[invalid-argument-type] Argument is incorrect: Expected `list[int | float]`, found `list[int]`
- tests/samplers_tests/test_samplers.py:371:5: error[invalid-assignment] Object of type `dict[str, CategoricalDistribution]` is not assignable to `dict[str, BaseDistribution]`
- Found 575 diagnostics
+ Found 572 diagnostics

trio (https://github.com/python-trio/trio)
+ src/trio/_core/_tests/test_guest_mode.py:109:24: error[invalid-return-type] Return type does not match returned value: expected `T@trivial_guest_run`, found `object`
- Found 593 diagnostics
+ Found 594 diagnostics

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/asynchronous/encryption.py:442:30: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ pymongo/asynchronous/encryption.py:441:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `AsyncMongoClient[Mapping[str, Any]] | None`, found `None | AsyncMongoClient[_DocumentTypeArg@__init__]`
+ pymongo/synchronous/database.py:938:20: error[no-matching-overload] No overload of bound method `_command` matches arguments
- pymongo/synchronous/encryption.py:439:30: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ pymongo/synchronous/encryption.py:438:13: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `MongoClient[Mapping[str, Any]] | None`, found `None | MongoClient[_DocumentTypeArg@__init__]`
- Found 537 diagnostics
+ Found 538 diagnostics

sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/pycode/ast.py:79:9: error[invalid-assignment] Object of type `list[expr]` is not assignable to `list[expr | None]`
+ sphinx/util/_serialise.py:44:16: error[no-matching-overload] No overload of bound method `__init__` matches arguments

strawberry (https://github.com/strawberry-graphql/strawberry)
- strawberry/federation/schema.py:273:46: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- Found 377 diagnostics
+ Found 376 diagnostics

openlibrary (https://github.com/internetarchive/openlibrary)
+ openlibrary/solr/types_generator.py:76:24: error[invalid-argument-type] Argument to bound method `add` is incorrect: Expected `str`, found `str | None`
- Found 941 diagnostics
+ Found 942 diagnostics

meson (https://github.com/mesonbuild/meson)
- docs/refman/generatormd.py:211:13: error[invalid-assignment] Object of type `list[Kwarg]` is not assignable to `list[ArgBase]`
- mesonbuild/build.py:1056:36: error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `File`, found `File | (@Todo & str) | (StructuredSources & str)`
- mesonbuild/build.py:1189:16: error[invalid-return-type] Return type does not match returned value: expected `ImmutableListProtocol[@Todo]`, found `list[Unknown]`
+ mesonbuild/build.py:1189:16: error[invalid-return-type] Return type does not match returned value: expected `ImmutableListProtocol[@Todo]`, found `list[@Todo]`
- mesonbuild/build.py:1222:16: error[invalid-return-type] Return type does not match returned value: expected `ImmutableListProtocol[@Todo]`, found `list[Unknown]`
+ mesonbuild/build.py:1222:16: error[invalid-return-type] Return type does not match returned value: expected `ImmutableListProtocol[@Todo]`, found `list[@Todo]`
- mesonbuild/build.py:1917:16: error[invalid-return-type] Return type does not match returned value: expected `ImmutableListProtocol[str]`, found `list[Unknown]`
+ mesonbuild/build.py:1917:16: error[invalid-return-type] Return type does not match returned value: expected `ImmutableListProtocol[str]`, found `list[str]`
- mesonbuild/interpreter/interpreter.py:3358:9: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, list[@Todo]].__setitem__(key: str, value: list[@Todo], /) -> None` cannot be called with a key of type `Literal["language_args"]` and a value of type `defaultdict[Unknown, Unknown]` on object of type `dict[str, list[@Todo]]`
+ mesonbuild/interpreter/interpreter.py:3358:9: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, list[@Todo]].__setitem__(key: str, value: list[@Todo], /) -> None` cannot be called with a key of type `Literal["language_args"]` and a value of type `defaultdict[str, list[str]]` on object of type `dict[str, list[@Todo]]`
- mesonbuild/interpreter/type_checking.py:187:1: error[invalid-assignment] Object of type `KwargInfo[bool]` is not assignable to `KwargInfo[bool | UserFeatureOption]`
- mesonbuild/rewriter.py:659:13: error[invalid-assignment] Object of type `set[BaseNode]` is not assignable to `set[BaseNode | UnknownValue]`
- mesonbuild/rewriter.py:820:65: error[invalid-argument-type] Argument to bound method `reachable` is incorrect: Expected `set[BaseNode | UnknownValue]`, found `set[BaseNode]`
- Found 1665 diagnostics
+ Found 1660 diagnostics

xarray (https://github.com/pydata/xarray)
+ xarray/core/dataset.py:912:47: error[invalid-argument-type] Argument to bound method `_construct_direct` is incorrect: Expected `dict[Unknown, Unknown] | None`, found `dict[Hashable, Any] | None | Default`
+ xarray/core/dataset.py:912:63: error[invalid-argument-type] Argument to bound method `_construct_direct` is incorrect: Expected `dict[Unknown, Unknown] | None`, found `dict[Unknown, Unknown] | None | Default`
- xarray/core/datatree.py:1529:64: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- xarray/tests/test_backends.py:2428:17: error[unsupported-operator] Operator `not in` is not supported for types `str` and `int`, in comparing `Literal["blosc"]` with `str | int`
- xarray/tests/test_groupby.py:2881:5: error[invalid-assignment] Object of type `dict[str, UniqueGrouper]` is not assignable to `dict[str, Grouper]`
- xarray/tests/test_groupby.py:2903:5: error[invalid-assignment] Object of type `dict[str, UniqueGrouper]` is not assignable to `dict[str, Grouper]`
- xarray/tests/test_groupby.py:2929:5: error[invalid-assignment] Object of type `dict[str, UniqueGrouper]` is not assignable to `dict[str, Grouper]`
- xarray/tests/test_groupby.py:2937:5: error[invalid-assignment] Object of type `dict[str, UniqueGrouper]` is not assignable to `dict[str, Grouper]`
- xarray/tests/test_groupby.py:2980:5: error[invalid-assignment] Object of type `dict[str, BinGrouper | UniqueGrouper]` is not assignable to `dict[str, Grouper]`
- Found 1760 diagnostics
+ Found 1755 diagnostics

setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/compilers/C/base.py:484:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[list[str], str]`, found `tuple[list[Unknown], str | None]`
+ setuptools/_distutils/compilers/C/base.py:484:16: error[invalid-return-type] Return type does not match returned value: expected `tuple[list[str], str]`, found `tuple[list[str], str | None]`
- setuptools/_vendor/typeguard/_decorators.py:209:29: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, (Unknown & str) | (Unknown & None)].__setitem__(key: str, value: (Unknown & str) | (Unknown & None), /) -> None` cannot be called with a key of type `Literal["fset", "fget", "fdel"]` and a value of type `FunctionType` on object of type `dict[str, (Unknown & str) | (Unknown & None)]`
- setuptools/_vendor/typeguard/_transformer.py:1128:34: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[expr | None]`, found `list[Constant]`
- setuptools/tests/test_wheel.py:552:5: error[invalid-argument-type] Argument to bound method `__call__` is incorrect: Expected `Iterable[None | str | int | float] | ((Any, /) -> object) | None`, found `list[str | dict[Unknown | str, Unknown | dict[Unknown | str, Unknown | str]] | dict[str, list[Unknown | str]] | ... omitted 9 union elements]`
- Found 1187 diagnostics
+ Found 1184 diagnostics

prefect (https://github.com/PrefectHQ/prefect)
- src/integrations/prefect-aws/prefect_aws/lambda_function.py:166:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, str].__setitem__(key: str, value: str, /) -> None` cannot be called with a key of type `Literal["Payload"]` and a value of type `bytes` on object of type `dict[str, str]`
- src/integrations/prefect-aws/prefect_aws/lambda_function.py:232:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, str].__setitem__(key: str, value: str, /) -> None` cannot be called with a key of type `Literal["Payload"]` and a value of type `bytes` on object of type `dict[str, str]`
- src/integrations/prefect-aws/prefect_aws/secrets_manager.py:133:5: error[invalid-assignment] Object of type `dict[str, str]` is not assignable to `dict[str, str | bytes]`
- src/integrations/prefect-aws/prefect_aws/secrets_manager.py:219:5: error[invalid-assignment] Object of type `dict[str, str]` is not assignable to `dict[str, str | bytes | list[dict[str, str]]]`
- src/integrations/prefect-aws/prefect_aws/secrets_manager.py:335:5: error[invalid-assignment] Object of type `dict[str, str]` is not assignable to `dict[str, str | int]`
- src/prefect/client/orchestration/_deployments/client.py:600:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, list[str | Unknown]].__setitem__(key: str, value: list[str | Unknown], /) -> None` cannot be called with a key of type `Literal["scheduled_before"]` and a value of type `str` on object of type `dict[str, list[str | Unknown]]`
- src/prefect/client/orchestration/_deployments/client.py:602:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, list[str | Unknown]].__setitem__(key: str, value: list[str | Unknown], /) -> None` cannot be called with a key of type `Literal["limit"]` and a value of type `int & ~AlwaysFalsy` on object of type `dict[str, list[str | Unknown]]`
- src/prefect/client/orchestration/_deployments/client.py:1273:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, list[str | Unknown]].__setitem__(key: str, value: list[str | Unknown], /) -> None` cannot be called with a key of type `Literal["scheduled_before"]` and a value of type `str` on object of type `dict[str, list[str | Unknown]]`
- src/prefect/client/orchestration/_deployments/client.py:1275:13: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, list[str | Unknown]].__setitem__(key: str, value: list[str | Unknown], /) -> None` cannot be called with a key of type `Literal["limit"]` and a value of type `int & ~AlwaysFalsy` on object of type `dict[str, list[str | Unknown]]`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `weekday | int | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | weekday | Iterable[int] | Iterable[weekday] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `bool | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:269:34: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `Literal[0, 1, 2, 3, 4, 5, 6]`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `weekday | int | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `Literal[0, 1, 2, 3, 4, 5, 6]`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | weekday | Iterable[int] | Iterable[weekday] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:279:48: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `bool | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `Literal[0, 1, 2, 3, 4, 5, 6]`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `weekday | int | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | weekday | Iterable[int] | Iterable[weekday] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `int | Iterable[int] | None`, found `datetime`
- src/prefect/client/schemas/schedules.py:290:50: error[invalid-argument-type] Argument to bound method `replace` is incorrect: Expected `bool | None`, found `datetime`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `UUID`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `VersionInfo | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `list[DeploymentScheduleCreate] | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `int | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `ConcurrencyOptions | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `dict[str, Any] | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `list[str] | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `UUID | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `UUID | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `dict[str, Any] | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `bool | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `list[dict[str, Any]] | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `bool | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `dict[str, Any] | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `str | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `UUID | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/deployments/runner.py:396:64: error[invalid-argument-type] Argument to bound method `create_deployment` is incorrect: Expected `UUID | None`, found `UUID | str | None | ... omitted 7 union elements`
- src/prefect/flow_engine.py:1576:48: error[invalid-argument-type] Argument to function `run_generator_flow_async` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1576:48: error[invalid-argument-type] Argument to function `run_generator_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1576:48: error[invalid-argument-type] Argument to function `run_generator_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1576:48: error[invalid-argument-type] Argument to function `run_generator_flow_async` is incorrect: Expected `Iterable[PrefectFuture[Unknown]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1576:48: error[invalid-argument-type] Argument to function `run_generator_flow_async` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1576:48: error[invalid-argument-type] Argument to function `run_generator_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1578:47: error[invalid-argument-type] Argument to function `run_generator_flow_sync` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1578:47: error[invalid-argument-type] Argument to function `run_generator_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1578:47: error[invalid-argument-type] Argument to function `run_generator_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1578:47: error[invalid-argument-type] Argument to function `run_generator_flow_sync` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1578:47: error[invalid-argument-type] Argument to function `run_generator_flow_sync` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1578:47: error[invalid-argument-type] Argument to function `run_generator_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1580:38: error[invalid-argument-type] Argument to function `run_flow_async` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1580:38: error[invalid-argument-type] Argument to function `run_flow_async` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1580:38: error[invalid-argument-type] Argument to function `run_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1580:38: error[invalid-argument-type] Argument to function `run_flow_async` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1580:38: error[invalid-argument-type] Argument to function `run_flow_async` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1580:38: error[invalid-argument-type] Argument to function `run_flow_async` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1582:37: error[invalid-argument-type] Argument to function `run_flow_sync` is incorrect: Expected `Flow[Unknown, Unknown]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1582:37: error[invalid-argument-type] Argument to function `run_flow_sync` is incorrect: Expected `FlowRun | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1582:37: error[invalid-argument-type] Argument to function `run_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1582:37: error[invalid-argument-type] Argument to function `run_flow_sync` is incorrect: Expected `Iterable[PrefectFuture[Any]] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1582:37: error[invalid-argument-type] Argument to function `run_flow_sync` is incorrect: Expected `Literal["state", "result"]`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/flow_engine.py:1582:37: error[invalid-argument-type] Argument to function `run_flow_sync` is incorrect: Expected `dict[str, Any] | None`, found `Flow[P@run_flow, R@run_flow] | FlowRun | None | ... omitted 3 union elements`
- src/prefect/server/database/dependencies.py:289:16: error[invalid-return-type] Return type does not match returned value: expected `Self@__get__ | _DBInjectorMethod[T@DBInjector, P@DBInjector, R@DBInjector]`, found `_DBInjectorMethod[T@DBInjector & ~None, Unknown, Unknown]`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1759:41: error[invalid-argument-type] Argument to function `run_generator_task_async` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1761:40: error[invalid-argument-type] Argument to function `run_generator_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1763:31: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `UUID | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `TaskRun | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_engine.py:1765:30: error[invalid-argument-type] Argument to function `run_task_sync` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@run_task, R@run_task | Coroutine[Any, Any, R@run_task]] | UUID | None | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `Task[Unknown, Unknown]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `UUID | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `TaskRun | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `Literal["state", "result"]`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `dict[str, set[RunInput]] | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/task_runners.py:400:32: error[invalid-argument-type] Argument to function `run_task_async` is incorrect: Expected `dict[str, Any] | None`, found `Task[P@submit, R@ThreadPoolTaskRunner | CoroutineType[Any, Any, R@ThreadPoolTaskRunner]] | UUID | dict[str, Any] | ... omitted 5 union elements`
- src/prefect/tasks.py:1176:16: error[invalid-return-type] Return type does not match returned value: expected `R@Task | State[R@Task] | None`, found `State[R@Task] | R@Task | State[Never]`
+ src/prefect/tasks.py:1176:16: error[no-matching-overload] No overload of function `run_task` matches arguments
- Found 3389 diagnostics
+ Found 3251 diagnostics

altair (https://github.com/vega/altair)
- altair/utils/schemapi.py:429:57: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | Path | IO[Unknown]`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `Literal["json", "html", "png", "svg", "pdf", "vega"] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `Literal["vega-lite"] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `dict[Unknown, Unknown] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `dict[Unknown, Unknown] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `int | float`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `Literal["vl-convert"] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2414:22: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `bool`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `Literal["vega-lite"] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `Literal["vl-convert"] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `bool`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `Literal["json", "html", "png", "svg", "pdf", "vega"] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | Path | IO[Unknown]`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `str | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `dict[Unknown, Unknown] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `dict[Unknown, Unknown] | None`, found `Self@save | str | Path | ... omitted 6 union elements`
- altair/vegalite/v6/api.py:2416:18: error[invalid-argument-type] Argument to function `save` is incorrect: Expected `int | float`, found `Self@save | str | Path | ... omitted 6 union elements`
- Found 1044 diagnostics
+ Found 1021 diagnostics

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- tests/indexes/test_indexes.py:1148:15: error[type-assertion-failure] Argument does not have asserted type `str`
- tests/scalars/test_scalars.py:122:9: error[type-assertion-failure] Argument does not have asserted type `bool`
- tests/scalars/test_scalars.py:122:21: error[no-matching-overload] No overload of bound method `overlaps` matches arguments
- tests/series/test_series.py:3052:5: error[invalid-assignment] Object of type `set[type[generic[Any]]]` is not assignable to `set[type]`
- tests/test_frame.py:3796:9: error[type-assertion-failure] Argument does not have asserted type `defaultdict[Any, list[Unknown]]`
- tests/test_frame.py:3813:9: error[type-assertion-failure] Argument does not have asserted type `list[defaultdict[Any, list[Unknown]]]`
- Found 6013 diagnostics
+ Found 6007 diagnostics

ibis (https://github.com/ibis-project/ibis)
- ibis/util.py:111:21: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `(V@promote_list & ~Top[list[Unknown]] & ~Top[dict[Unknown, Unknown]]) | (Iterable[V@promote_list] & ~Top[list[Unknown]] & ~Top[dict[Unknown, Unknown]])`
+ ibis/util.py:111:21: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[V@promote_list]`, found `(V@promote_list & ~Top[list[Unknown]] & ~Top[dict[Unknown, Unknown]]) | (Iterable[V@promote_list] & ~Top[list[Unknown]] & ~Top[dict[Unknown, Unknown]])`

jax (https://github.com/google/jax)
- jax/_src/checkify.py:376:61: warning[possibly-missing-attribute] Attribute `debug_info` may be missing on object of type `Any | (tuple[@Todo, @Todo] & ~ClosedJaxpr)`
- jax/_src/interpreters/mlir.py:1483:5: error[invalid-assignment] Object of type `OrderedDict[str, Unknown]` is not assignable to attribute `_tokens` of type `OrderedDict[Effect, Unknown]`
- Found 2583 diagnostics
+ Found 2581 diagnostics

bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/core/templates.py:112:1: error[invalid-assignment] Object of type `dict[str, () -> Unknown]` is not assignable to `dict[str, () -> Template]`
- src/bokeh/model/model.py:496:16: error[invalid-return-type] Return type does not match returned value: expected `set[bokeh.model.model.Model @ src/bokeh/model/model.py:79]`, found `set[bokeh.model.model.Model @ src/bokeh/model/model.pyi:40]`
+ src/bokeh/model/model.py:496:16: error[invalid-return-type] Return type does not match returned value: expected `set[bokeh.model.model.Model @ src/bokeh/model/model.py:79]`, found `set[bokeh.model.model.Model @ src/bokeh/model/model.py:79 | bokeh.model.model.Model @ src/bokeh/model/model.pyi:40]`
- src/bokeh/models/sources.py:256:21: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | Property[Any]`
+ src/bokeh/models/sources.py:256:21: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[str]`, found `Unknown | Property[Any]`
- Found 652 diagnostics
+ Found 651 diagnostics

dd-trace-py (https://github.com/DataDog/dd-trace-py)
- tests/ci_visibility/util.py:51:9: error[invalid-assignment] Object of type `set[TestId] | set[Unknown]` is not assignable to attribute `_known_test_ids` on type `CIVisibility | None`
+ tests/ci_visibility/util.py:51:9: error[invalid-assignment] Object of type `set[TestId]` is not assignable to attribute `_known_test_ids` on type `CIVisibility | None`

zulip (https://github.com/zulip/zulip)
- zerver/actions/channel_folders.py:96:57: error[invalid-argument-type] Argument to function `do_send_channel_folder_update_event` is incorrect: Expected `dict[str, str | bool]`, found `dict[str, str]`
- zerver/actions/channel_folders.py:124:25: error[invalid-argument-type] Argument to function `do_send_channel_folder_update_event` is incorrect: Expected `dict[str, str | bool]`, found `dict[str, str]`
- zerver/actions/channel_folders.py:141:57: error[invalid-argument-type] Argument to function `do_send_channel_folder_update_event` is incorrect: Expected `dict[str, str | bool]`, found `dict[str, bool]`
- zerver/actions/channel_folders.py:157:57: error[invalid-argument-type] Argument to function `do_send_channel_folder_update_event` is incorrect: Expected `dict[str, str | bool]`, found `dict[str, bool]`
- zerver/actions/realm_linkifiers.py:16:5: error[invalid-assignment] Object of type `dict[str, str | list[LinkifierDict]]` is not assignable to `dict[str, object]`
- zerver/actions/user_groups.py:276:49: error[invalid-argument-type] Argument to function `do_send_user_group_update_event` is incorrect: Expected `dict[str, str | int | UserGroupMembersDict]`, found `dict[str, str]`
- zerver/actions/user_groups.py:297:49: error[invalid-argument-type] Argument to function `do_send_user_group_update_event` is incorrect: Expected `dict[str, str | int | UserGroupMembersDict]`, found `dict[str, str]`
- zerver/actions/user_groups.py:599:49: error[invalid-argument-type] Argument to function `do_send_user_group_update_event` is incorrect: Expected `dict[str, str | int | UserGroupMembersDict]`, found `dict[str, bool]`
- zerver/actions/user_groups.py:621:49: error[invalid-argument-type] Argument to function `do_send_user_group_update_event` is incorrect: Expected `dict[str, str | int | UserGroupMembersDict]`, found `dict[str, bool]`
+ zerver/lib/display_recipient.py:67:17: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[UserDisplayRecipient]`, found `Unknown | QuerySet[Unknown, dict[str, Any]]`
- zerver/lib/home.py:215:12: error[invalid-return-type] Return type does not match returned value: expected `tuple[int, dict[str, object]]`, found `tuple[Any | None, dict[str, str | Any | int | float | None]]`
+ zerver/lib/home.py:215:12: error[invalid-return-type] Return type does not match returned value: expected `tuple[int, dict[str, object]]`, found `tuple[Any | None, dict[str, object]]`
- zerver/lib/message.py:932:5: error[invalid-assignment] Object of type `dict[str, dict[int, RawUnreadDirectMessageDict] | dict[int, RawUnreadStreamDict] | set[Unknown] | dict[int, RawUnreadDirectMessageGroupDict] | bool]` is not assignable to `RawUnreadMessagesResult`
+ zerver/lib/message.py:932:5: error[invalid-assignment] Object of type `dict[str, dict[int, RawUnreadDirectMessageDict] | dict[int, RawUnreadStreamDict] | set[int] | dict[int, RawUnreadDirectMessageGroupDict] | bool]` is not assignable to `RawUnreadMessagesResult`
- zerver/models/realms.py:705:5: error[invalid-assignment] Object of type `dict[str, <class 'bool'> | <class 'str'> | <class 'int'> | ... omitted 4 union elements]` is not assignable to `dict[str, type | UnionType]`
+ zerver/models/users.py:1155:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[RawUserDict]`, found `Unknown | QuerySet[Unknown, dict[str, Any]]`
+ zerver/models/users.py:1174:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[RawUserDict]`, found `Unknown | QuerySet[Unknown, dict[str, Any]]`
+ zerver/models/users.py:1184:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[RawUserDict]`, found `Unknown | QuerySet[Unknown, dict[str, Any]]`
- zerver/tests/test_events.py:4435:29: warning[possibly-missing-attribute] Attribute `value` may be missing on object of type `Unknown | str | int | None | _StrPromise`
+ zerver/tests/test_events.py:4435:29: warning[possibly-missing-attribute] Attribute `value` may be missing on object of type `@Todo | bool`
- zerver/tests/test_events.py:4760:29: warning[possibly-missing-attribute] Attribute `value` may be missing on object of type `Unknown | int | str`
+ zerver/tests/test_events.py:4760:29: warning[possibly-missing-attribute] Attribute `value` may be missing on object of type `@Todo | bool`
- zerver/tests/test_message_fetch.py:1999:50: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2057:13: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2065:13: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2389:13: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2395:13: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2408:13: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2454:50: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2462:50: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2479:46: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2483:46: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2495:46: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2505:46: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2518:46: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2526:46: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2598:50: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2669:50: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2814:50: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2857:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2866:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2883:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2891:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2902:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2952:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2962:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_message_fetch.py:2979:47: error[invalid-argument-type] Argument to bound method `get_and_check_messages` is incorrect: Expected `dict[str, str | int]`, found `dict[str, str]`
- zerver/tests/test_openapi.py:588:38: error[not-iterable] Object of type `((...) -> Unknown) & ~(() -> object)` is not iterable
- zerver/tests/test_openapi.py:600:58: warning[possibly-missing-attribute] Attribute `__name__` may be missing on object of type `(Unknown & ~(def get_events(request: HttpRequest, user_profile: UserProfile) -> HttpResponse)) | (((...) -> Unknown) & (() -> object) & ~(def get_events(request: HttpRequest, user_profile: UserProfile) -> HttpResponse)) | ((...) -> Unknown)`
- zerver/tests/test_user_topics.py:1104:35: error[invalid-argument-type] Argument to function `participate_in_poll` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_user_topics.py:1105:36: error[invalid-argument-type] Argument to function `participate_in_poll` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_user_topics.py:1166:33: error[invalid-argument-type] Argument to function `edit_todo_list` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_user_topics.py:1167:31: error[invalid-argument-type] Argument to function `edit_todo_list` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_user_topics.py:1475:35: error[invalid-argument-type] Argument to function `participate_in_poll` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_user_topics.py:1476:36: error[invalid-argument-type] Argument to function `participate_in_poll` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_user_topics.py:1542:33: error[invalid-argument-type] Argument to function `edit_todo_list` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_user_topics.py:1543:31: error[invalid-argument-type] Argument to function `edit_todo_list` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_widgets.py:386:33: error[invalid-argument-type] Argument to function `post` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_widgets.py:389:31: error[invalid-argument-type] Argument to function `post` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_widgets.py:415:33: error[invalid-argument-type] Argument to function `post` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_widgets.py:418:31: error[invalid-argument-type] Argument to function `post` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_widgets.py:477:24: error[invalid-argument-type] Argument to function `assert_success` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_widgets.py:478:24: error[invalid-argument-type] Argument to function `assert_success` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_widgets.py:479:24: error[invalid-argument-type] Argument to function `assert_success` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/tests/test_widgets.py:533:24: error[invalid-argument-type] Argument to function `assert_success` is incorrect: Expected `dict[str, object]`, found `dict[str, str | int]`
- zerver/tests/test_widgets.py:534:24: error[invalid-argument-type] Argument to function `assert_success` is incorrect: Expected `dict[str, object]`, found `dict[str, str]`
- zerver/views/streams.py:917:5: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, defaultdict[Unknown, Unknown]].__setitem__(key: str, value: defaultdict[Unknown, Unknown], /) -> None` cannot be called with a key of type `Literal["subscribed"]` and a value of type `dict[Unknown, Unknown]` on object of type `dict[str, defaultdict[Unknown, Unknown]]`
- zerver/views/streams.py:918:5: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, defaultdict[Unknown, Unknown]].__setitem__(key: str, value: defaultdict[Unknown, Unknown], /) -> None` cannot be called with a key of type `Literal["already_subscribed"]` and a value of type `dict[Unknown, Unknown]` on object of type `dict[str, defaultdict[Unknown, Unknown]]`
- zerver/views/streams.py:924:9: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, defaultdict[Unknown, Unknown]].__setitem__(key: str, value: defaultdict[Unknown, Unknown], /) -> None` cannot be called with a key of type `Literal["new_subscription_messages_sent"]` and a value of type `bool` on object of type `dict[str, defaultdict[Unknown, Unknown]]`
- zerver/views/streams.py:937:5: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, defaultdict[Unknown, Unknown]].__setitem__(key: str, value: defaultdict[Unknown, Unknown], /) -> None` cannot be called with a key of type `Literal["subscribed"]` and a value of type `dict[Unknown, Unknown]` on object of type `dict[str, defaultdict[Unknown, Unknown]]`
- zerver/views/streams.py:938:5: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, defaultdict[Unknown, Unknown]].__setitem__(key: str, value: defaultdict[Unknown, Unknown], /) -> None` cannot be called with a key of type `Literal["already_subscribed"]` and a value of type `dict[Unknown, Unknown]` on object of type `dict[str, defaultdict[Unknown, Unknown]]`
- zerver/views/streams.py:940:9: error[invalid-assignment] Method `__setitem__` of type `bound method dict[str, defaultdict[Unknown, Unknown]].__setitem__(key: str, value: defaultdict[Unknown, Unknown], /) -> None` cannot be called with a key of type `Literal["unauthorized"]` and a value of type `list[Unknown]` on object of type `dict[str, defaultdict[Unknown, Unknown]]`
+ zilencer/management/commands/populate_db.py:942:30: error[unresolved-attribute] Object of type `UserProfile` has no attribute `realm_id`
- Found 3373 diagnostics
+ Found 3318 diagnostics

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/indexes/base.py:6464:16: error[no-matching-overload] No overload of bound method `__init__` matches arguments
- pandas/core/internals/construction.py:672:5: error[invalid-assignment] Object of type `list[int]` is not assignable to `list[Hashable]`
- pandas/tests/frame/methods/test_replace.py:24:12: error[invalid-return-type] Return type does not match returned value: expected `dict[str, list[int | str]]`, found `dict[str, list[int | str] | list[int]]`
- pandas/tests/frame/methods/test_replace.py:29:12: error[invalid-return-type] Return type does not match returned value: expected `dict[str, list[int | float | str]]`, found `dict[str, list[int | float | str] | list[int]]`
- Found 3373 diagnostics
+ Found 3371 diagnostics

rotki (https://github.com/rotki/rotki)
- rotkehlchen/chain/ethereum/modules/liquity/trove.py:265:85: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- rotkehlchen/chain/ethereum/modules/liquity/trove.py:276:73: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ rotkehlchen/exchanges/coinbase.py:524:20: error[invalid-assignment] Object of type `dict[str, list[dict[Unknown, Unknown]]]` is not assignable to `defaultdict[str, list[dict[Unknown, Unknown]]]`
+ rotkehlchen/tests/unit/test_makerdao.py:170:16: error[no-matching-overload] No overload of bound method `__init__` matches arguments
+ rotkehlchen/tests/unit/test_makerdao.py:171:21: error[no-matching-overload] No overload of bound method `__init__` matches arguments
- Found 1671 diagnostics
+ Found 1672 diagnostics

sympy (https://github.com/sympy/sympy)
- sympy/tensor/array/expressions/from_array_to_matrix.py:149:5: error[invalid-assignment] Object of type `list[Basic]` is not assignable to `list[Basic | None]`
- Found 14496 diagnostics
+ Found 14495 diagnostics

core (https://github.com/home-assistant/core)
- homeassistant/components/airly/__init__.py:48:81: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `set[tuple[str, str]] | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | datetime | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `DeviceEntryDisabler | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `DeviceEntryType | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `set[tuple[str, str]] | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | datetime | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `Mapping[str, str] | None`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/apple_tv/__init__.py:392:57: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `tuple[str, str] | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]] | str`
+ homeassistant/components/bthome/logbook.py:34:16: error[invalid-return-type] Return type does not match returned value: expected `dict[str, str]`, found `dict[str, str | (DeviceEntry & ~AlwaysTruthy & ~AlwaysFalsy)]`
+ homeassistant/components/ecobee/climate.py:926:13: error[invalid-argument-type] Argument to function `sorted` is incorrect: Argument type `str | None | Unknown` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
+ homeassistant/components/ecobee/climate.py:926:13: error[invalid-argument-type] Argument to function `sorted` is incorrect: Expected `Iterable[str]`, found `list[str | None | Unknown]`
- homeassistant/components/home_connect/select.py:453:9: error[invalid-assignment] Object of type `set[str]` is not assignable to attribute `_original_option_keys` of type `set[str | None]`
- homeassistant/components/home_connect/select.py:530:9: error[invalid-assignment] Object of type `set[str]` is not assignable to attribute `_original_option_keys` of type `set[str | None]`
+ homeassistant/components/homekit/__init__.py:959:13: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `set[tuple[str, str]] | None | UndefinedType`, found `set[Unknown | tuple[str, Unknown | str, str]]`
- homeassistant/components/homekit_controller/connection.py:486:81: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | datetime | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `DeviceEntryDisabler | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `DeviceEntryType | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | datetime | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `str | None`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `Mapping[str, str] | None`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
+ homeassistant/components/hue/v2/device.py:78:76: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `tuple[str, str] | None | UndefinedType`, found `Unknown | set[Unknown | tuple[str, Unknown]]`
- homeassistant/components/hue/v2/hue_event.py:56:41: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- homeassistant/components/hue/v2/hue_event.py:80:41: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
+ homeassistant/components/kodi/media_player.py:322:37: warning[possibly-missing-attribute] Attribute `id` may be missing on object of type `DeviceEntry | None`
+ homeassistant/components/kodi/media_player.py:323:27: warning[possibly-missing-attribute] Attribute `id` may be missing on object of type `DeviceEntry | None`
- homeassistant/components/kraken/__init__.py:134:9: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to attribute `coordinator` of type `DataUpdateCoordinator[KrakenResponse | None] | None`
- homeassistant/components/kraken/__init__.py:144:15: warning[possibly-missing-attribute] Attribute `async_config_entry_first_refresh` may be missing on object of type `DataUpdateCoordinator[KrakenResponse | None] | None`
- homeassistant/components/lcn/device_trigger.py:61:82: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- homeassistant/components/met/__init__.py:69:68: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- homeassistant/components/modbus/binary_sensor.py:87:9: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to attribute `_coordinator` of type `DataUpdateCoordinator[list[int] | None] | None`
- homeassistant/components/modbus/binary_sensor.py:95:25: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DataUpdateCoordinator[list[int] | None]`, found `DataUpdateCoordinator[list[int] | None] | None`
- homeassistant/components/modbus/sensor.py:101:9: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to attribute `_coordinator` of type `DataUpdateCoordinator[list[int | float | None] | None] | None`
- homeassistant/components/modbus/sensor.py:109:25: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `DataUpdateCoordinator[list[int | float | None] | None]`, found `DataUpdateCoordinator[list[int | float | None] | None] | None`
+ homeassistant/components/nmap_tracker/__init__.py:220:9: error[invalid-assignment] Object of type `dict[str | Unknown, str | None | Unknown]` is not assignable to attribute `_known_mac_addresses` of type `dict[str, str]`
- homeassistant/components/proxmoxve/__init__.py:215:12: error[invalid-return-type] Return type does not match returned value: expected `DataUpdateCoordinator[dict[str, Any] | None]`, found `DataUpdateCoordinator[dict[str, Any]]`
- homeassistant/components/rest/__init__.py:180:12: error[invalid-return-type] Return type does not match returned value: expected `DataUpdateCoordinator[None]`, found `DataUpdateCoordinator[dict[str, Any]]`
- homeassistant/components/simplisafe/__init__.py:588:9: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to attribute `coordinator` of type `DataUpdateCoordinator[None] | None`
- homeassistant/components/solaredge/coordinator.py:73:9: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to attribute `coordinator` of type `DataUpdateCoordinator[None]`
- homeassistant/components/spotify/__init__.py:82:5: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to `DataUpdateCoordinator[list[Unknown]]`
- homeassistant/components/spotify/__init__.py:88:9: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `(() -> Awaitable[dict[str, Any]]) | None`, found `def _update_devices() -> CoroutineType[Any, Any, list[Unknown]]`
+ homeassistant/components/tado/climate.py:813:20: error[unsupported-operator] Operator `in` is not supported for types `None` and `str`, in comparing `str | None` with `@Todo | str | list[Unknown]`
+ homeassistant/components/toon/__init__.py:105:9: error[invalid-argument-type] Argument to bound method `async_get_or_create` is incorrect: Expected `set[tuple[str, str]] | None | UndefinedType`, found `set[Unknown | tuple[str, Unknown, str]]`
+ homeassistant/components/tuya/diagnostics.py:165:13: warning[possibly-missing-attribute] Attribute `append` may be missing on object of type `Unknown | str | None | bool | list[Unknown]`
- homeassistant/components/whois/__init__.py:35:5: error[invalid-assignment] Object of type `DataUpdateCoordinator[dict[str, Any]]` is not assignable to `DataUpdateCoordinator[Unknown | None]`
- homeassistant/const.py:278:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventStateChangedData]`
- homeassistant/const.py:279:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventStateReportedData]`
- homeassistant/core.py:1547:17: error[invalid-assignment] Object of type `Event[Mapping[str, Any]]` is not assignable to `Event[_DataT@async_fire_internal] | None`
- homeassistant/core.py:1548:21: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[_DataT@async_fire_internal] | str`
- homeassistant/helpers/area_registry.py:38:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventAreaRegistryUpdatedData]`
- homeassistant/helpers/category_registry.py:23:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventCategoryRegistryUpdatedData]`
- homeassistant/helpers/device_registry.py:55:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventDeviceRegistryUpdatedData]`
- homeassistant/helpers/entity_registry.py:75:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventEntityRegistryUpdatedData]`
- homeassistant/helpers/floor_registry.py:28:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventFloorRegistryUpdatedData]`
- homeassistant/helpers/issue_registry.py:25:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventIssueRegistryUpdatedData]`
- homeassistant/helpers/label_registry.py:26:1: error[invalid-assignment] Object of type `EventType[Mapping[str, Any]]` is not assignable to `EventType[EventLabelRegistryUpdatedData]`
- Found 14458 diagnostics
+ Found 14476 diagnostics

scipy (https://github.com/scipy/scipy)
- scipy/_lib/array_api_extra/src/array_api_extra/_lib/_lazy.py:215:31: warning[unused-ignore-comment] Unused blanket `type: ignore` directive
- Found 9154 diagnostics
+ Found 9153 diagnostics

No memory usage changes detected ✅

@ibraheemdev ibraheemdev force-pushed the ibraheem/generic-constructor-tcx branch from 16c4d8a to 22bbbe3 Compare October 17, 2025 03:10
@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2025

ecosystem-analyzer results

Lint rule Added Removed Changed
invalid-argument-type 52 269 3
invalid-assignment 3 68 3
invalid-return-type 2 7 6
unused-ignore-comment 0 15 0
possibly-missing-attribute 3 6 4
type-assertion-failure 0 4 0
unresolved-attribute 3 0 0
unsupported-operator 2 1 0
no-matching-overload 1 1 0
not-iterable 0 1 0
Total 66 372 16

Full report with detailed diff (timing results)

Copy link
Contributor

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I know it's a bit daunting to go through the ecosystem diff, but the return on investment is typically quite good, as it tends to reveal problematic cases more often than not. This PR seems to have a non-trivial impact as well, so it'd be great to do a brief analysis to see if anything stands out.

let return_ty = self.signature.return_ty?;
// For generic constructors, we use the type context to infer the specialization of the class
// instance instead of the method's return type.
let (inference_context, generic_constructor) = if let Type::BoundMethod(method) =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Matching on explicit type variants is tempting, I know, but will break down when the callable is not precisely a bound method. For example, in a case like the following, the callable would be a union type:

class X[T]:
    def __init__(self, value: T):
        self.value = value

def _(flag: bool):
    b: X[int | None] = X(1) if flag else X(2)
    reveal_type(b)

This might be difficult to fix here, and might be an acceptable limitation for now, but we should maybe add a test case and a TODO?

let (inference_context, generic_constructor) = if let Type::BoundMethod(method) =
self.callable_type
&& let Type::NominalInstance(instance) = method.self_instance(self.db)
&& method.function(self.db).name(self.db) == "__init__"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it enough to match on __init__ or do we need a similar treatment of __new__ calls (which we generally don't support everywhere and fully yet)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a couple cases that this does not handle correctly, I left those as TODOs for now.

@AlexWaygood AlexWaygood removed their request for review October 17, 2025 12:05
@ibraheemdev ibraheemdev changed the base branch from main to ibraheem/generic-call-inference November 4, 2025 19:30
@ibraheemdev ibraheemdev force-pushed the ibraheem/generic-constructor-tcx branch 2 times, most recently from 02bb567 to c789045 Compare November 4, 2025 19:40
@ibraheemdev
Copy link
Member Author

The ecosystem report looks a lot better after rebasing this on #21210. Most of the added diagnostics seem to be existing issues that were hidden by an inference of Unknown.

@ibraheemdev ibraheemdev force-pushed the ibraheem/generic-call-inference branch 5 times, most recently from 46b938b to 966b438 Compare November 7, 2025 16:56
@ibraheemdev ibraheemdev force-pushed the ibraheem/generic-constructor-tcx branch from c789045 to 37ac0b5 Compare November 7, 2025 16:56
Base automatically changed from ibraheem/generic-call-inference to main November 10, 2025 21:29
@ibraheemdev ibraheemdev force-pushed the ibraheem/generic-constructor-tcx branch from 37ac0b5 to 25ed082 Compare November 10, 2025 21:45
@ibraheemdev ibraheemdev enabled auto-merge (squash) November 10, 2025 21:46
@ibraheemdev ibraheemdev merged commit 3656b44 into main Nov 10, 2025
40 checks passed
@ibraheemdev ibraheemdev deleted the ibraheem/generic-constructor-tcx branch November 10, 2025 21:49
dcreager added a commit that referenced this pull request Nov 11, 2025
* origin/main: (38 commits)
  [ty] Make implicit submodule imports only occur in global scope (#21370)
  [ty] introduce local variables for `from` imports of submodules in `__init__.py(i)` (#21173)
  [`ruff`] Ignore `str()` when not used for simple conversion (`RUF065`) (#21330)
  [ty] implement `typing.NewType` by adding `Type::NewTypeInstance`
  [ty] supress inlay hints for `+1` and `-1` (#21368)
  [ty] Use type context for inference of generic constructors (#20933)
  [ty] Improve generic call expression inference (#21210)
  [ty] supress some trivial expr inlay hints (#21367)
  [`configuration`] Fix unclear error messages for line-length values exceeding `u16::MAX` (#21329)
  [ty] Fix incorrect inference of `enum.auto()` for enums with non-`int` mixins, and imprecise inference of `enum.auto()` for single-member enums (#20541)
  [`refurb`] Detect empty f-strings (`FURB105`) (#21348)
  [ty] provide `import` completion when in `from <name> <name>` statement (#21291)
  [ty] elide redundant inlay hints for function args (#21365)
  Fix syntax error false positive on alternative `match` patterns (#21362)
  Add a new "Opening a PR" section to the contribution guide (#21298)
  [`flake8-simplify`] Fix SIM222 false positive for `tuple(generator) or None` (`SIM222`) (#21187)
  Rebuild ruff binary instead of sharing it across jobs (#21361)
  [ty] Fix `--exclude` and `src.exclude` merging (#21341)
  [ty] Add support for properties that return `Self` (#21335)
  Add upstream linter URL to `ruff linter --output-format=json` (#21316)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosystem-analyzer ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

invalid "object is not assignable" with class-scoped generic

3 participants