[ty] Preserve constraints in union branch#24421
Closed
charliermarsh wants to merge 1 commit intomainfrom
Closed
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 87.72%. The percentage of expected errors that received a diagnostic held steady at 82.85%. The number of fully passing files held steady at 74/132. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdownprefect
sphinx
trio
flake8
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-argument-type |
77 | 37 | 61 |
unsupported-operator |
19 | 1 | 26 |
invalid-assignment |
20 | 0 | 24 |
invalid-await |
0 | 40 | 0 |
unresolved-attribute |
36 | 1 | 2 |
type-assertion-failure |
10 | 12 | 15 |
no-matching-overload |
9 | 14 | 0 |
invalid-return-type |
11 | 2 | 9 |
unused-type-ignore-comment |
0 | 10 | 0 |
not-iterable |
4 | 0 | 3 |
invalid-yield |
3 | 0 | 0 |
missing-argument |
0 | 2 | 0 |
possibly-unresolved-reference |
0 | 2 | 0 |
call-non-callable |
1 | 0 | 0 |
index-out-of-bounds |
1 | 0 | 0 |
not-subscriptable |
1 | 0 | 0 |
| Total | 192 | 121 | 140 |
Changes in flaky projects detected. Raw diff output excludes flaky projects; see the HTML report for details.
Showing a random sample of 228 of 404 changes. See the HTML report for the full diff.
Raw diff sample (228 of 404 changes)
PyGithub (https://github.com/PyGithub/PyGithub)
- tests/Connection.py:76:32 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[str]`, found `tuple[<class 'ReplayingHttpConnection'>, str] | tuple[<class 'ReplayingHttpsConnection'>, str]`
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/commands/slash.py:1785:30 error[not-iterable] Object of type `Sequence[((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)] | ((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)` may not be iterable
+ tanjun/commands/slash.py:1843:17 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)] | None`, found `Sequence[((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)] | ((int, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any) | ((str, /, *args: Any, **kwargs: Any) -> Coroutine[Any, Any, Any] | Any)`
apprise (https://github.com/caronc/apprise)
- apprise/plugins/africas_talking.py:418:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["mode"]` and value of type `Unknown | str | tuple[Unknown | str, Unknown | str, Unknown | str] | bool | None` on object of type `dict[str, str]`
+ apprise/plugins/africas_talking.py:418:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["mode"]` and value of type `Unknown | str | int | ... omitted 4 union elements` on object of type `dict[str, str]`
- apprise/plugins/aprs.py:282:21 error[unsupported-operator] Operator `<` is not supported between objects of type `float` and `Unknown | str | int | float | dict[str, str]`
+ apprise/plugins/aprs.py:282:21 error[unsupported-operator] Operator `<` is not supported between objects of type `float` and `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/aprs.py:283:24 error[unsupported-operator] Operator `>=` is not supported between objects of type `float` and `Unknown | str | int | float | dict[str, str]`
+ apprise/plugins/aprs.py:283:24 error[unsupported-operator] Operator `>=` is not supported between objects of type `float` and `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/aprs.py:293:9 error[unsupported-operator] Operator `+=` is not supported between objects of type `float` and `Unknown | str | int | float | dict[str, str]`
+ apprise/plugins/aprs.py:293:9 error[unsupported-operator] Operator `+=` is not supported between objects of type `float` and `Unknown | str | int | ... omitted 4 union elements`
+ apprise/plugins/aprs.py:333:17 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `None` on object of type `dict[str, str]`
+ apprise/plugins/aprs.py:338:18 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, str].__getitem__(key: str, /) -> str` cannot be called with key of type `frozenset[str]` on object of type `dict[str, str]`
- apprise/plugins/custom_form.py:400:17 error[invalid-argument-type] Argument to function `request` is incorrect: Expected `str | bytes`, found `Unknown | str | tuple[str, str, str, str, str, str, str, str]`
+ apprise/plugins/custom_form.py:400:17 error[invalid-argument-type] Argument to function `request` is incorrect: Expected `str | bytes`, found `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/custom_xml.py:408:17 error[invalid-argument-type] Argument to function `request` is incorrect: Expected `str | bytes`, found `Unknown | str | tuple[str, str, str, str, str, str, str, str]`
+ apprise/plugins/custom_xml.py:408:17 error[invalid-argument-type] Argument to function `request` is incorrect: Expected `str | bytes`, found `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/dbus.py:261:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | dict[Unknown | int, str] | int`
+ apprise/plugins/dbus.py:261:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/enigma2.py:168:16 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int`
+ apprise/plugins/enigma2.py:168:16 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int | ... omitted 3 union elements`
- apprise/plugins/fluxer.py:394:20 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | tuple[Unknown | str, Unknown | str] | int`
+ apprise/plugins/fluxer.py:394:20 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/fluxer.py:787:34 error[invalid-assignment] Object of type `dict[str, str | Unknown | tuple[Unknown | str, Unknown | str] | int]` is not assignable to `dict[str, str]`
+ apprise/plugins/fluxer.py:787:34 error[invalid-assignment] Object of type `dict[str, str | Unknown | int | ... omitted 4 union elements]` is not assignable to `dict[str, str]`
- apprise/plugins/glib.py:215:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | dict[Unknown | int, str] | int`
+ apprise/plugins/glib.py:215:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/gnome.py:169:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | dict[Unknown | int, str] | int`
+ apprise/plugins/gnome.py:169:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/gotify.py:177:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | dict[Unknown | int, str] | int`
+ apprise/plugins/gotify.py:177:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | int | ... omitted 4 union elements`
+ apprise/plugins/home_assistant.py:143:45 error[not-iterable] Object of type `Unknown | str | int | ... omitted 4 union elements` may not be iterable
+ apprise/plugins/kodi.py:182:36 error[unsupported-operator] Operator `*` is not supported between objects of type `Unknown | str | int | ... omitted 3 union elements` and `Literal[1000]`
- apprise/plugins/mqtt.py:266:17 error[unsupported-operator] Operator `<` is not supported between two objects of type `Unknown | str | int | dict[str, str]`
+ apprise/plugins/mqtt.py:266:17 error[unsupported-operator] Operator `<` is not supported between two objects of type `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/msteams.py:539:26 error[unsupported-operator] Operator `>` is not supported between objects of type `Unknown | int | str | tuple[int, int, int] | None` and `Literal[1]`
+ apprise/plugins/msteams.py:539:26 error[unsupported-operator] Operator `>` is not supported between objects of type `Unknown | int | str | ... omitted 4 union elements` and `Literal[1]`
- apprise/plugins/nextcloud.py:231:20 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int`
+ apprise/plugins/nextcloud.py:231:20 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int | ... omitted 3 union elements`
- apprise/plugins/nextcloud.py:298:20 error[unsupported-operator] Operator `<` is not supported between objects of type `Unknown | str | int` and `Literal[21]`
+ apprise/plugins/nextcloud.py:298:20 error[unsupported-operator] Operator `<` is not supported between objects of type `Unknown | str | int | ... omitted 3 union elements` and `Literal[21]`
- apprise/plugins/one_signal.py:286:37 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy) | Literal[True]`
+ apprise/plugins/one_signal.py:286:37 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy) | (int & ~AlwaysFalsy) | (float & ~AlwaysFalsy) | (frozenset[str] & ~AlwaysFalsy)`
- apprise/plugins/pushover.py:341:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | dict[Unknown | int, str] | int | tuple[str, str]`
+ apprise/plugins/pushover.py:341:13 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc`, found `Unknown | str | int | ... omitted 5 union elements`
- apprise/plugins/smseagle.py:662:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["priority"]` and value of type `str | Unknown | tuple[Unknown | int, Unknown | int] | int` on object of type `dict[str, str]`
+ apprise/plugins/smseagle.py:662:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["priority"]` and value of type `str | Unknown | int | ... omitted 4 union elements` on object of type `dict[str, str]`
- apprise/plugins/streamlabs.py:250:24 error[not-iterable] Object of type `Unknown | str | tuple[Unknown | str, Unknown | str] | tuple[Unknown | str, Unknown | str, Unknown | str, Unknown | str] | int` may not be iterable
+ apprise/plugins/streamlabs.py:250:24 error[not-iterable] Object of type `Unknown | str | int | ... omitted 5 union elements` may not be iterable
- apprise/plugins/streamlabs.py:261:43 error[not-iterable] Object of type `Unknown | str | tuple[Unknown | str, Unknown | str] | tuple[Unknown | str, Unknown | str, Unknown | str, Unknown | str] | int` may not be iterable
+ apprise/plugins/streamlabs.py:261:43 error[not-iterable] Object of type `Unknown | str | int | ... omitted 5 union elements` may not be iterable
- apprise/plugins/telegram.py:442:13 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown | str].__getitem__(key: str, /) -> Unknown | str` cannot be called with key of type `bool` on object of type `dict[str, Unknown | str]`
+ apprise/plugins/telegram.py:442:13 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown | str].__getitem__(key: str, /) -> Unknown | str` cannot be called with key of type `None` on object of type `dict[str, Unknown | str]`
+ apprise/plugins/telegram.py:452:17 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown | str].__getitem__(key: str, /) -> Unknown | str` cannot be called with key of type `float` on object of type `dict[str, Unknown | str]`
+ apprise/plugins/telegram.py:452:17 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown | str].__getitem__(key: str, /) -> Unknown | str` cannot be called with key of type `frozenset[str]` on object of type `dict[str, Unknown | str]`
+ apprise/plugins/telegram.py:452:17 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown | str].__getitem__(key: str, /) -> Unknown | str` cannot be called with key of type `int` on object of type `dict[str, Unknown | str]`
- apprise/plugins/telegram.py:876:21 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | str | bool | tuple[Unknown | str, Unknown | str]`
+ apprise/plugins/telegram.py:876:21 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | str | int | ... omitted 4 union elements`
- apprise/plugins/twilio.py:249:22 error[not-iterable] Object of type `Unknown | str | bool | tuple[Unknown | str, Unknown | str]` may not be iterable
+ apprise/plugins/twilio.py:249:22 error[not-iterable] Object of type `Unknown | str | int | ... omitted 4 union elements` may not be iterable
- apprise/plugins/vonage.py:176:13 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int`
+ apprise/plugins/vonage.py:176:13 error[unsupported-operator] Operator `<` is not supported between objects of type `int` and `Unknown | str | int | ... omitted 3 union elements`
- apprise/plugins/vonage.py:177:16 error[unsupported-operator] Operator `>` is not supported between objects of type `int` and `Unknown | str | int`
+ apprise/plugins/vonage.py:177:16 error[unsupported-operator] Operator `>` is not supported between objects of type `int` and `Unknown | str | int | ... omitted 3 union elements`
- apprise/plugins/xmpp/base.py:422:35 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `(() -> None) | None`, found `XMPPConfig | list[Unknown] | str | ... omitted 5 union elements`
+ apprise/plugins/xmpp/base.py:422:35 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `(() -> None) | None`, found `XMPPConfig | list[Unknown] | str | ... omitted 6 union elements`
bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/layouts.py:309:34 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | UIElement | None | list[UIElement | None]`
+ src/bokeh/layouts.py:315:41 error[unresolved-attribute] Object of type `Model` has no attribute `toolbar`
+ src/bokeh/layouts.py:316:25 error[unresolved-attribute] Unresolved attribute `toolbar_location` on type `Model`
+ src/bokeh/plotting/_renderer.py:212:42 error[unsupported-operator] Operator `+` is not supported between objects of type `str` and `None | str`
+ src/bokeh/plotting/_renderer.py:213:34 error[unsupported-operator] Operator `+` is not supported between objects of type `str` and `None | str`
cloud-init (https://github.com/canonical/cloud-init)
+ cloudinit/sources/DataSourceOracle.py:401:36 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["privateIp"]` on object of type `str`
+ tests/unittests/test_ds_identify.py:1007:16 error[unresolved-attribute] Attribute `get` is not defined on `str` in union `str | dict[str, str | int] | dict[str, str | int | Unknown]`
+ tests/unittests/test_ds_identify.py:1485:16 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["name"]` on object of type `str`
+ tests/unittests/test_ds_identify.py:1012:40 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> LiteralString, (key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str]` cannot be called with key of type `Literal["out"]` on object of type `str`
- tests/unittests/test_net.py:5345:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["devices"]` and value of type `set[Unknown]` on object of type `dict[str, list[str] | dict[str, str | None] | dict[Unknown, Unknown]]`
+ tests/unittests/test_net.py:5345:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["devices"]` and value of type `set[str | Unknown]` on object of type `dict[str, list[str] | dict[str, str | None] | dict[Unknown, Unknown]]`
- tests/unittests/test_net.py:5502:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["devices"]` and value of type `set[Unknown]` on object of type `dict[str, list[str] | dict[str, str | None] | dict[str, str]]`
+ tests/unittests/test_net.py:5502:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["devices"]` and value of type `set[str]` on object of type `dict[str, list[str] | dict[str, str | None] | dict[str, str]]`
core (https://github.com/home-assistant/core)
- homeassistant/components/icloud/config_flow.py:218:36 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Any | None | bool | list[Any] | dict[Any, Any]`
+ homeassistant/components/icloud/config_flow.py:218:36 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Any]`, found `Any | None | bool | list[Any] | dict[Any, Any]`
- homeassistant/components/philips_js/light.py:308:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["audioSettings"]` and value of type `dict[str, str | None | dict[str, Unknown | int] | dict[str, int]]` on object of type `dict[str, str | bool]`
+ homeassistant/components/philips_js/light.py:308:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["audioSettings"]` and value of type `dict[str, str | None | dict[str, int]]` on object of type `dict[str, str | bool]`
- homeassistant/components/template/light.py:310:25 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[int]`, found `(Any & Top[list[Unknown]]) | (Any & tuple[object, ...]) | list[int | float]`
- homeassistant/components/template/light.py:345:24 error[invalid-return-type] Return type does not match returned value: expected `list[int] | None`, found `list[_T@list]`
+ homeassistant/components/template/light.py:345:24 error[invalid-return-type] Return type does not match returned value: expected `list[int] | None`, found `list[int | float]`
cwltool (https://github.com/common-workflow-language/cwltool)
+ cwltool/command_line_tool.py:1280:46 error[invalid-argument-type] Argument to function `shortname` is incorrect: Expected `str`, found `Unknown | int | str | ... omitted 6 union elements`
dulwich (https://github.com/dulwich/dulwich)
- dulwich/client.py:5145:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["timeout"]` and value of type `(Unknown & ~None) | int | float` on object of type `dict[str, dict[Unknown, Unknown] | bool]`
+ dulwich/client.py:5145:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["timeout"]` and value of type `(Unknown & ~None) | int | float` on object of type `dict[str, dict[str | Unknown, str | Unknown] | bool]`
+ dulwich/config.py:278:24 error[invalid-return-type] Return type does not match returned value: expected `Iterator[K@__iter__]`, found `Iterator[K@__init__]`
+ dulwich/config.py:296:24 error[invalid-return-type] Return type does not match returned value: expected `Iterator[tuple[K@__iter__, V@__iter__]]`, found `Iterator[tuple[K@__init__, V@__init__]]`
+ dulwich/walk.py:184:24 error[invalid-argument-type] Argument to bound method `_push` is incorrect: Expected `ObjectID`, found `ObjectID | int | Unknown`
graphql-core (https://github.com/graphql-python/graphql-core)
+ src/graphql/language/visitor.py:229:43 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `Any | str | int`
+ src/graphql/language/visitor.py:229:43 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `Any | str | int`
+ src/graphql/language/visitor.py:229:43 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `Any | str | int`
hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/auxs/interptools.py:166:36 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `int | (Sequence[int | float] & ~float) | (ndarray[tuple[int], dtype[float64]] & ~float)`
+ hydpy/core/objecttools.py:2034:28 error[invalid-argument-type] Argument to function `is_equal` is incorrect: Expected `int | float | ndarray[tuple[Any, ...], dtype[float64]] | Mapping[str, Divergent] | Sequence[Divergent]`, found `object`
ibis (https://github.com/ibis-project/ibis)
- ibis/backends/sql/compilers/snowflake.py:237:25 error[no-matching-overload] No overload of bound method `join` matches arguments
- ibis/backends/sql/compilers/snowflake.py:238:30 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `tuple[Literal[3], Literal[10]] | Unknown | tuple[Literal[3], Literal[11]]`
+ ibis/common/egraph.py:396:32 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str`, found `int`
+ ibis/common/egraph.py:404:36 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `str`, found `int`
ignite (https://github.com/pytorch/ignite)
+ tests/ignite/metrics/vision/test_object_detection_map.py:1005:41 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], slice[None, Literal[4], None]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1006:49 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], Literal[4]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1016:41 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], slice[None, Literal[4], None]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1017:44 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], Literal[4]]` on object of type `dict[str, Unknown]`
+ tests/ignite/metrics/vision/test_object_detection_map.py:1018:46 error[invalid-argument-type] Method `__getitem__` of type `bound method dict[str, Unknown].__getitem__(key: str, /) -> Unknown` cannot be called with key of type `tuple[slice[None, None, None], Literal[5]]` on object of type `dict[str, Unknown]`
jax (https://github.com/google/jax)
- jax/_src/export/serialization.py:700:33 error[invalid-argument-type] Argument to function `_serialize_array` is incorrect: Expected `Iterable[str | tuple[str, ...] | None]`, found `Unknown | tuple[object, ...]`
+ jax/_src/export/serialization.py:699:42 error[invalid-argument-type] Argument to function `_serialize_array` is incorrect: Expected `(Unknown, object, /) -> int`, found `def _serialize_partition_spec_one_axis(builder: Unknown, spec: str | tuple[str, ...] | None) -> int`
- jax/_src/interpreters/partial_eval.py:2485:60 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ jax/_src/lax/slicing.py:3425:21 error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `object`
+ jax/_src/lax/slicing.py:3450:32 error[unsupported-operator] Operator `<` is not supported between objects of type `~int & ~Top[integer[Any]]` and `Literal[0]`
+ jax/_src/lax/slicing.py:3450:39 error[unsupported-operator] Operator `+` is not supported between objects of type `~int & ~Top[integer[Any]]` and `Array`
+ jax/_src/lax/slicing.py:3450:50 error[invalid-argument-type] Argument to function `select` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `~int & ~Top[integer[Any]]`
+ jax/_src/lax/slicing.py:3452:21 error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `~int & ~Top[integer[Any]]`
+ jax/_src/numpy/lax_numpy.py:2215:31 error[unsupported-operator] Operator `-` is not supported between objects of type `int | Any | Sequence[int | Any]` and `Literal[1]`
+ jax/_src/numpy/lax_numpy.py:3693:17 error[no-matching-overload] No overload of function `where` matches arguments
- jax/_src/pallas/mosaic/pipeline.py:1137:40 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Array]`, found `Unknown | tuple[int | Array, ...]`
+ jax/_src/pallas/mosaic/pipeline.py:1137:18 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `(Array | int, int | Array, /) -> GridAxis`, found `<class 'GridAxis'>`
kopf (https://github.com/nolar/kopf)
- kopf/_cogs/clients/api.py:72:16 error[invalid-assignment] Object of type `_T@chain` is not assignable to `int | float | None`
+ kopf/_cogs/clients/api.py:72:16 error[invalid-assignment] Object of type `object` is not assignable to `int | float | None`
meson (https://github.com/mesonbuild/meson)
+ mesonbuild/backend/ninjabackend.py:1250:27 error[unresolved-attribute] Attribute `get_outputs` is not defined on `str`, `File`, `ExtractedObjects`, `StructuredSources` in union `Unknown | str | File | ... omitted 6 union elements`
+ mesonbuild/backend/vs2010backend.py:559:42 error[invalid-argument-type] Argument to bound method `gen_vcxproj` is incorrect: Expected `BuildTarget`, found `CustomTarget | BuildTarget`
+ mesonbuild/backend/vs2010backend.py:561:33 error[invalid-argument-type] Argument to bound method `append` is incorrect: Expected `tuple[str, Path, str, MachineChoice]`, found `tuple[str, PurePath, str, MachineChoice]`
mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ test/mitmproxy/proxy/tutils.py:68:24 error[invalid-argument-type] Argument to function `_eq` is incorrect: Expected `Command | Event`, found `object`
+ test/mitmproxy/proxy/tutils.py:68:27 error[invalid-argument-type] Argument to function `_eq` is incorrect: Expected `Command | Event`, found `object`
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ pymongo/read_preferences.py:77:12 error[invalid-return-type] Return type does not match returned value: expected `Sequence[Mapping[str, Any]] | None`, found `list[object]`
+ pymongo/helpers_shared.py:160:20 error[invalid-return-type] Return type does not match returned value: expected `Sequence[tuple[str, int | str | Mapping[str, Any]]]`, found `list[str | tuple[object, object]]`
+ pymongo/helpers_shared.py:346:16 error[invalid-return-type] Return type does not match returned value: expected `Mapping[str, Any]`, found `dict[object, int]`
nox (https://github.com/wntrblm/nox)
- nox/_parametrize.py:153:37 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Param | Iterable[Any | Param | Iterable[Any]]]`, found `(Iterable[Param | Iterable[Any]] & tuple[object, ...]) | (Param & tuple[object, ...]) | (Iterable[Any] & tuple[object, ...]) | ... omitted 3 union elements`
optuna (https://github.com/optuna/optuna)
- optuna/study/_multi_objective.py:37:50 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | list[int | float] | None`
+ optuna/study/_multi_objective.py:37:50 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[int | float]`, found `Unknown | list[int | float] | None`
- optuna/visualization/_rank.py:273:68 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | list[int | float] | None`
+ optuna/visualization/_rank.py:273:68 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[int | float]`, found `Unknown | list[int | float] | None`
pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/common.py:316:16 error[invalid-return-type] Return type does not match returned value: expected `Collection[T@maybe_iterable_to_list] | T@maybe_iterable_to_list`, found `list[object]`
- pandas/core/computation/ops.py:554:29 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Unknown | Iterable[Term | Op]`
+ pandas/core/frame.py:4444:37 error[invalid-argument-type] Argument to bound method `_iset_item_mgr` is incorrect: Expected `int | slice[Any, Any, Any] | ndarray[tuple[Any, ...], dtype[Any]]`, found `int | integer[Any]`
+ pandas/plotting/_matplotlib/core.py:1614:17 error[invalid-argument-type] Argument to bound method `_plot` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[Any]]`, found `Series | ndarray[tuple[Any, ...], dtype[Any]]`
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
- tests/indexes/bool/test_add.py:38:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_add.py:38:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float]`
+ tests/indexes/bool/test_add.py:39:23 error[unsupported-operator] Operator `+` is not supported between objects of type `Index[bool]` and `list[int | float | complex]`
- tests/indexes/bool/test_add.py:44:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/bool/test_add.py:44:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[int | float | complex]`
- tests/indexes/int/test_add.py:39:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
- tests/indexes/int/test_add.py:44:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float]`
- tests/indexes/int/test_add.py:45:11 error[type-assertion-failure] Type `Index[Unknown]` does not match asserted type `Index[int | float | complex]`
+ tests/indexes/test_add.py:41:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
+ tests/indexes/test_add.py:42:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Index[Any]`
- tests/series/bool/test_add.py:51:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:51:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float | complex]`
+ tests/series/bool/test_add.py:55:23 error[unsupported-operator] Operator `+` is not supported between objects of type `list[int | float]` and `Series[bool]`
+ tests/series/bool/test_add.py:60:23 error[no-matching-overload] No overload of bound method `add` matches arguments
- tests/series/bool/test_add.py:65:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:65:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[int | float]`
+ tests/series/bool/test_add.py:67:21 error[no-matching-overload] No overload of bound method `radd` matches arguments
- tests/series/int/test_add.py:51:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_add.py:55:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
- tests/series/int/test_add.py:56:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
- tests/series/int/test_add.py:60:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
- tests/series/int/test_add.py:65:11 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float]`
- tests/series/int/test_add.py:67:9 error[type-assertion-failure] Type `Series[Unknown]` does not match asserted type `Series[int | float | complex]`
+ tests/series/test_add.py:55:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:67:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:68:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
+ tests/series/test_add.py:73:11 error[type-assertion-failure] Type `Unknown` does not match asserted type `Series[Any]`
porcupine (https://github.com/Akuli/porcupine)
- porcupine/pluginmanager.py:133:24 error[no-matching-overload] No overload of bound method `join` matches arguments
- porcupine/pluginmanager.py:133:49 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Never]`, found `Unknown | str`
psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/_typeinfo.py:198:30 error[no-matching-overload] No overload of bound method `join` matches arguments
- psycopg/psycopg/waiting.py:266:17 error[invalid-argument-type] Argument to function `select` is incorrect: Expected `Iterable[Never]`, found `tuple[int] | tuple[()]`
- tests/utils.py:114:29 error[no-matching-overload] No overload of bound method `join` matches arguments
- tests/utils.py:114:47 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `(Unknown & ~AlwaysFalsy) | (tuple[int, ...] & ~AlwaysFalsy)`
- tests/utils.py:123:29 error[no-matching-overload] No overload of bound method `join` matches arguments
pwndbg (https://github.com/pwndbg/pwndbg)
+ pwndbg/emu/emulator.py:551:36 error[invalid-assignment] Object of type `tuple[UnspecializedTypeVar | str | None, ...]` is not assignable to `tuple[str]`
+ pwndbg/enhance.py:164:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `UnspecializedTypeVar | str | None`
pycryptodome (https://github.com/Legrandin/pycryptodome)
+ lib/Crypto/SelfTest/Hash/test_CMAC.py:434:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal[4]` and value of type `dict[str, str | <module 'Crypto.Cipher.AES'> | <module 'Crypto.Cipher.DES3'>]` on object of type `list[str | <module 'Crypto.Cipher.AES'> | <module 'Crypto.Cipher.DES3'>]`
pylint (https://github.com/pycqa/pylint)
- pylint/checkers/__init__.py:124:22 error[invalid-argument-type] Argument to bound method `extend` is incorrect: Expected `Iterable[str]`, found `tuple[Unknown, str, str, str | int | (Unknown & ~float)]`
+ pylint/checkers/__init__.py:124:22 error[invalid-argument-type] Argument to bound method `extend` is incorrect: Expected `Iterable[str]`, found `tuple[str, str, str, str | int | (Unknown & ~float)]`
rotki (https://github.com/rotki/rotki)
+ rotkehlchen/chain/decoding/tools.py:42:59 error[invalid-assignment] Object of type `frozenset[BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress]` is not assignable to `frozenset[A@BaseDecoderTools]`: Incompatible value of type `frozenset[BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress]`
+ rotkehlchen/chain/evm/decoding/curve/decoder.py:1119:13 error[unsupported-operator] Operator `|=` is not supported between objects of type `dict[ChecksumAddress, tuple[bound method Self@addresses_to_decoders._decode_pool_events(context: DecoderContext) -> EvmDecodingOutput]]` and `dict[ChecksumAddress, tuple[bound method Self@addresses_to_decoders.decode_gauge_mints(context: DecoderContext) -> EvmDecodingOutput]]`
- rotkehlchen/chain/evm/decoding/spark/savings/decoder.py:225:13 error[unsupported-operator] Operator `|=` is not supported between objects of type `dict[Unknown, tuple[bound method Self@addresses_to_decoders._decode_spark_tokens_deposit_withdrawal(context: DecoderContext) -> EvmDecodingOutput]]` and `dict[Unknown | ChecksumAddress, tuple[bound method Self@addresses_to_decoders._decode_psm_deposit_withdrawal(context: DecoderContext) -> EvmDecodingOutput]]`
+ rotkehlchen/chain/evm/decoding/spark/savings/decoder.py:225:13 error[unsupported-operator] Operator `|=` is not supported between objects of type `dict[ChecksumAddress, tuple[bound method Self@addresses_to_decoders._decode_spark_tokens_deposit_withdrawal(context: DecoderContext) -> EvmDecodingOutput]]` and `dict[Unknown | ChecksumAddress, tuple[bound method Self@addresses_to_decoders._decode_psm_deposit_withdrawal(context: DecoderContext) -> EvmDecodingOutput]]`
+ rotkehlchen/chain/evm/decoding/stakedao/decoder.py:340:13 error[no-matching-overload] No overload of bound method `update` matches arguments
+ rotkehlchen/chain/evm/decoding/stakedao/decoder.py:343:13 error[no-matching-overload] No overload of bound method `update` matches arguments
schema_salad (https://github.com/common-workflow-language/schema_salad)
+ schema_salad/schema.py:412:48 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
+ schema_salad/sourceline.py:224:28 error[invalid-argument-type] Argument to function `cmap` is incorrect: Expected `int | float | str | ... omitted 3 union elements`, found `object`
schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/openapi/checks.py:119:16 error[no-matching-overload] No overload of bound method `join` matches arguments
- src/schemathesis/openapi/checks.py:119:34 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Unknown | list[str | int]`
scikit-learn (https://github.com/scikit-learn/scikit-learn)
+ sklearn/externals/array_api_extra/_lib/_funcs.py:132:44 error[invalid-argument-type] Argument to function `array_namespace` is incorrect: Expected `Array | int | float | complex | None`, found `object`
- sklearn/externals/array_api_extra/_lib/_lazy.py:215:18 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[tuple[int | None, ...]]`
+ sklearn/externals/array_api_extra/_lib/_lazy.py:215:18 error[invalid-assignment] Object of type `list[int | None | tuple[int | None, ...]]` is not assignable to `list[tuple[int | None, ...]]`
- sklearn/externals/array_api_extra/_lib/_lazy.py:215:23 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[tuple[int | None, ...]]`, found `tuple[int | None, ...] | Sequence[tuple[int | None, ...]]`
+ sklearn/inspection/_plot/partial_dependence.py:1486:32 error[index-out-of-bounds] Index 1 is out of bounds for tuple `tuple[bool]` with length 1
+ sklearn/neighbors/_classification.py:307:28 error[unresolved-attribute] Attribute `take` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
scipy (https://github.com/scipy/scipy)
+ subprojects/cobyqa/cobyqa/tests/test_main.py:189:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["target"]` and value of type `float` on object of type `dict[str, bool]`
+ subprojects/cobyqa/cobyqa/tests/test_main.py:201:9 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["maxfev"]` and value of type `Literal[10]` on object of type `dict[str, bool]`
- scipy/_lib/_bunch.py:206:9 error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `property` on object of type `dict[str, str | tuple[str, ...] | ([_T_co](self: type[tuple[Unknown, ...]], iterable: Iterable[Unknown] = ..., /) -> Unknown) | ... omitted 4 union elements]`
+ scipy/_lib/_bunch.py:206:9 error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `property` on object of type `dict[str, str | tuple[str | Unknown, ...] | ([_T_co](self: type[tuple[Unknown, ...]], iterable: Iterable[Unknown] = ..., /) -> Unknown) | ... omitted 4 union elements]`
- scipy/_lib/_bunch.py:211:9 error[invalid-assignment] Invalid subscript assignment with key of type `str` and value of type `property` on object of type `dict[str, str | tuple[str, ...] | ([_T_co](self: type[tuple[Unknown, ...]], iterable: Iterable[Unknown] = ..., /) -> Unknown) | ... omitted 4 union elements]`
+ scipy/_lib/_bunch.py:211:9 error[invalid-assignment] Invalid subscript assignment with key of type `str | Unknown` and value of type `property` on object of type `dict[str, str | tuple[str | Unknown, ...] | ([_T_co](self: type[tuple[Unknown, ...]], iterable: Iterable[Unknown] = ..., /) -> Unknown) | ... omitted 4 union elements]`
+ scipy/signal/tests/test_short_time_fft.py:650:42 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Literal["twosided", "centered", "onesided", "onesided2X"]`, found `Any | None | int | str`
+ scipy/signal/tests/test_short_time_fft.py:650:58 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `int | None`, found `Any | None | int | str`
+ scipy/signal/tests/test_short_time_fft.py:651:28 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Literal["magnitude", "psd"] | None`, found `Any | None | int | str`
- scipy/special/tests/test_cdflib.py:117:54 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | None | list[Unknown | None]`
+ scipy/special/tests/test_cdflib.py:117:54 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown | None]`, found `Unknown | None | list[Unknown | None]`
+ subprojects/array_api_extra/src/array_api_extra/_lib/_funcs.py:148:44 error[invalid-argument-type] Argument to function `array_namespace` is incorrect: Expected `Array | int | float | complex | None`, found `object`
+ subprojects/highs/highs/highspy/highs.py:1003:39 error[invalid-argument-type] Argument to bound method `__addRow` is incorrect: Expected `highs_linear_expression`, found `object`
- subprojects/highs/highs/highspy/highs.py:1164:40 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc]`, found `(highs_var & Iterable[object]) | (int & Iterable[object]) | Iterable[highs_var | int]`
+ subprojects/highs/highs/highspy/highs.py:1164:35 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `(object, /) -> int`, found `<class 'int'>`
scipy-stubs (https://github.com/scipy/scipy-stubs)
- tests/spatial/test__rigid_transform.pyi:61:1 error[type-assertion-failure] Type `Unknown` does not match asserted type `RigidTransform[tuple[()]]`
+ tests/spatial/test__rigid_transform.pyi:61:1 error[type-assertion-failure] Type `RigidTransform[tuple[Any, ...]] | RigidTransform[tuple[int]]` does not match asserted type `RigidTransform[tuple[()]]`
scrapy (https://github.com/scrapy/scrapy)
+ scrapy/core/scraper.py:427:18 error[invalid-assignment] Object of type `AsyncIterator[object]` is not assignable to `Iterable[_T@handle_spider_output_async] | AsyncIterator[_T@handle_spider_output_async]`
+ scrapy/core/scraper.py:430:21 error[invalid-argument-type] Argument to function `parallel_async` is incorrect: Expected `AsyncIterator[Any]`, found `Iterable[_T@handle_spider_output_async] | AsyncIterator[_T@handle_spider_output_async]`
+ scrapy/core/spidermw.py:375:25 error[invalid-assignment] Object of type `MutableChain[object]` is not assignable to `MutableChain[_T@_process_callback_output] | MutableAsyncChain[_T@_process_callback_output]`
+ scrapy/core/spidermw.py:376:16 error[invalid-return-type] Return type does not match returned value: expected `MutableChain[_T@_process_callback_output] | MutableAsyncChain[_T@_process_callback_output]`, found `MutableChain[_T@MutableChain]`
+ scrapy/core/spidermw.py:376:37 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `MutableChain[_T@_process_callback_output] | MutableAsyncChain[_T@_process_callback_output]`
setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/compilers/C/base.py:446:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[str, list[tuple[str] | tuple[str, str | None]], list[str]]`, found `tuple[str | None, list[tuple[str] | tuple[str, str | None]] | Unknown, list[str] | list[Unknown]]`
+ setuptools/_distutils/compilers/C/base.py:446:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[str, list[tuple[str] | tuple[str, str | None]], list[str]]`, found `tuple[str | None, list[tuple[str] | tuple[str, str | None]] | Unknown, list[str] | Unknown]`
- setuptools/_distutils/version.py:173:23 error[no-matching-overload] No overload of bound method `join` matches arguments
- setuptools/_distutils/version.py:173:41 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `Unknown | tuple[int, ...]`
- setuptools/config/expand.py:334:16 error[no-matching-overload] No overload of bound method `join` matches arguments
sockeye (https://github.com/awslabs/sockeye)
+ sockeye/checkpoint_decoder.py:166:83 error[invalid-argument-type] Argument to function `make_input_from_multiple_strings` is incorrect: Expected `list[str]`, found `Any | tuple[Any, ...]`
spack (https://github.com/spack/spack)
+ lib/spack/spack/vendor/jinja2/lexer.py:762:35 error[call-non-callable] Object of type `str` is not callable
+ lib/spack/spack/vendor/jinja2/lexer.py:782:39 error[invalid-yield] Yield type `tuple[int | Any, (str & ~Literal["#bygroup"]) | Failure, str | Any]` does not match annotated yield type `tuple[int, str, str]`
+ lib/spack/spack/vendor/ruamel/yaml/representer.py:458:30 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[Unknown]`, found `str | ((...) -> Any) | tuple[Any, ...] | (Any & ~None)`
+ lib/spack/spack/vendor/ruamel/yaml/representer.py:471:75 error[unresolved-attribute] Attribute `__qualname__` is not defined on `str`, `(...) -> Any`, `tuple[Any, ...]`, `None`, `_T@list` in union `str | ((...) -> Any) | tuple[Any, ...] | ... omitted 3 union elements`
sphinx (https://github.com/sphinx-doc/sphinx)
- sphinx/writers/html5.py:450:47 error[no-matching-overload] No overload of bound method `join` matches arguments
static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/db_util.py:525:19 error[not-iterable] Object of type `Hashable` is not iterable
+ static_frame/core/frame.py:747:36 error[invalid-yield] Yield type `tuple[Hashable, Hashable]` does not match annotated yield type `tuple[Hashable, IndexBase]`
+ static_frame/core/index_correspondence.py:193:38 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], Any], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], Any], (key: str, /) -> ndarray[Any | tuple[Any, ...], dtype[Any]], (key: list[str], /) -> ndarray[Any | tuple[Any, ...], Unknown]]` cannot be called with key of type `object` on object of type `ndarray[Any, Any]`
+ static_frame/core/index_correspondence.py:199:25 error[invalid-assignment] Invalid subscript assignment with key of type `tuple[object, int]` and value of type `Unknown` on object of type `ndarray[Any, Any]`
+ static_frame/core/index_correspondence.py:199:47 error[invalid-argument-type] Method `__getitem__` of type `Overload[(key: ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...], /) -> ndarray[tuple[Any, ...], Any], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], Any], (key: str, /) -> ndarray[Any | tuple[Any, ...], dtype[Any]], (key: list[str], /) -> ndarray[Any | tuple[Any, ...], Unknown]]` cannot be called with key of type `tuple[object, int]` on object of type `ndarray[Any, Any]`
+ static_frame/core/loc_map.py:419:32 error[not-iterable] Object of type `Hashable` is not iterable
- static_frame/core/util.py:3892:20 error[unsupported-operator] Operator `+` is not supported between objects of type `_T@chain & ~None` and `Literal[1]`
- static_frame/test/unit/test_frame_iter.py:49:58 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- static_frame/test/unit/test_frame_iter.py:54:58 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
- static_frame/test/unit/test_frame_iter.py:840:56 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
+ static_frame/test/unit/test_series.py:4489:37 error[invalid-argument-type] Argument to bound method `assertAlmostEqualArray` is incorrect: Expected `ndarray[Any, Any]`, found `int | float`
strawberry (https://github.com/strawberry-graphql/strawberry)
- strawberry/relay/types.py:834:37 error[invalid-argument-type] Argument is incorrect: Expected `_T@aclosing`, found `AsyncIterable[NodeType@ListConnection] | AsyncIterator[Unknown]`
+ strawberry/relay/types.py:834:37 error[invalid-argument-type] Argument is incorrect: Expected `_T@aclosing`, found `AsyncIterable[NodeType@ListConnection] | AsyncIterator[object]`
streamlit (https://github.com/streamlit/streamlit)
+ lib/streamlit/elements/widgets/time_widgets.py:656:31 error[invalid-argument-type] Argument to function `strftime` is incorrect: Expected `date`, found `object`
sympy (https://github.com/sympy/sympy)
+ sympy/matrices/common.py:1062:21 error[invalid-assignment] Invalid subscript assignment with key of type `tuple[int | Unknown, int | Unknown]` and value of type `Expr` on object of type `defaultdict[Unknown, int]`
- sympy/parsing/mathematica.py:692:38 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Never]`, found `Unknown | list[str]`
- sympy/polys/polyoptions.py:472:61 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:472:61 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:474:61 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:474:61 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:480:63 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:480:63 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:482:61 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:482:61 error[invalid-argument-type] Argument to bound method `poly_ring` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/polys/polyoptions.py:492:62 error[invalid-argument-type] Argument to bound method `frac_field` is incorrect: Expected `str | Expr`, found `Basic | int | float | complex | Any`
+ sympy/polys/polyoptions.py:492:62 error[invalid-argument-type] Argument to bound method `frac_field` is incorrect: Expected `str | Expr`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/printing/c.py:645:31 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[tuple[ComplexType, set[str]]]`, found `Unknown | dict_items[Type, set[str]]`
- sympy/series/order.py:154:20 error[unresolved-attribute] Attribute `is_symbol` is not defined on `int`, `float`, `complex` in union `Unknown | Basic | int | float | complex`
+ sympy/series/order.py:154:20 error[unresolved-attribute] Attribute `is_symbol` is not defined on `int`, `float`, `complex`, `tuple[Unknown, ...]` in union `Unknown | Basic | int | ... omitted 3 union elements`
- sympy/series/order.py:189:28 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[1]` and `Unknown | Basic | int | float | complex`
+ sympy/series/order.py:189:28 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[1]` and `Unknown | Basic | int | ... omitted 3 union elements`
- sympy/series/order.py:193:29 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[-1]` and `Unknown | Basic | int | float | complex`
+ sympy/series/order.py:193:29 error[unsupported-operator] Operator `/` is not supported between objects of type `Literal[-1]` and `Unknown | Basic | int | ... omitted 3 union elements`
- sympy/series/order.py:270:52 error[invalid-argument-type] Argument to bound method `as_independent` is incorrect: Expected `Basic | type[Basic]`, found `Basic | int | float | complex | Any`
+ sympy/series/order.py:270:52 error[invalid-argument-type] Argument to bound method `as_independent` is incorrect: Expected `Basic | type[Basic]`, found `Basic | int | float | ... omitted 3 union elements`
- sympy/series/order.py:298:53 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | complex | Any`
+ sympy/series/order.py:298:53 error[unsupported-operator] Unary operator `-` is not supported for object of type `Basic | int | float | ... omitted 3 union elements`
+ sympy/solvers/inequalities.py:950:12 error[unresolved-attribute] Attribute `is_extended_real` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ sympy/stats/stochastic_process_types.py:2044:16 error[unsupported-operator] Operator `>` is not supported between two objects of type `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2065:25 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2070:25 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
+ sympy/stats/stochastic_process_types.py:2073:21 error[unresolved-attribute] Attribute `pspace` is not defined on `Basic` in union `Basic | Unknown`
- sympy/testing/runtests.py:1578:81 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Buffer]`, found `(Unknown & ~AlwaysFalsy) | tuple[Literal[3], Literal[5]]`
vision (https://github.com/pytorch/vision)
- test/test_transforms.py:324:66 error[invalid-argument-type] Argument to function `get_params` is incorrect: Expected `list[int | float]`, found `tuple[Unknown | float, Unknown]`
+ test/test_transforms.py:324:66 error[invalid-argument-type] Argument to function `get_params` is incorrect: Expected `list[int | float]`, found `tuple[int | float, int | float]`
+ torchvision/models/detection/anchor_utils.py:51:35 error[invalid-argument-type] Argument to bound method `generate_anchors` is incorrect: Expected `list[int]`, found `tuple[Literal[128], Literal[256], Literal[512]] | tuple[Unknown | tuple[Literal[128], Literal[256], Literal[512]]]`
+ torchvision/models/detection/anchor_utils.py:51:41 error[invalid-argument-type] Argument to bound method `generate_anchors` is incorrect: Expected `list[int | float]`, found `tuple[float, float, float] | Unknown | tuple[tuple[float, float, float]]`
- torchvision/utils.py:396:75 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
+ torchvision/utils.py:396:75 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[str | tuple[int, int, int] | int]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
- torchvision/utils.py:396:91 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
+ torchvision/utils.py:396:91 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[str | tuple[int, int, int] | int]`, found `list[str | tuple[int, int, int]] | str | tuple[int, int, int] | None`
websockets (https://github.com/aaugustin/websockets)
+ src/websockets/legacy/protocol.py:645:41 error[invalid-argument-type] Argument to function `prepare_data` is incorrect: Expected `str | bytes | bytearray | memoryview[int]`, found `object`
werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/wrappers/response.py:326:54 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
xarray (https://github.com/pydata/xarray)
+ xarray/core/dataarray.py:1490:29 error[invalid-assignment] Object of type `dict[Hashable, object]` is not assignable to `str | int | tuple[int, ...] | None | Mapping[Any, Resampler | str | int | tuple[int, ...] | None]`
- xarray/core/datatree.py:1564:16 error[invalid-return-type] Return type does not match returned value: expected `set[str]`, found `set[_T@set]`
+ xarray/core/datatree.py:1564:16 error[invalid-return-type] Return type does not match returned value: expected `set[str]`, found `set[Hashable]`
- xarray/core/datatree.py:1564:20 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[str]`, found `DataTreeCoordinates | list[Unknown]`
- xarray/core/variable.py:2228:46 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `Unknown | Literal[False] | list[Hashable]`
+ xarray/core/variable.py:2228:46 error[invalid-argument-type] Argument to function `__new__` is incorrect: Expected `Iterable[Hashable]`, found `Unknown | Literal[False] | list[Hashable]`
zulip (https://github.com/zulip/zulip)
- zerver/actions/user_groups.py:124:13 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[MemberGroupUserDict]`, found `Unknown | QuerySet[UserProfile, dict[str, Any]]`
- zerver/actions/user_groups.py:129:13 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[MemberGroupUserDict]`, found `Unknown | QuerySet[UserProfile, dict[str, Any]]`
- zerver/actions/user_groups.py:138:13 error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `Iterable[MemberGroupUserDict]`, found `Unknown | QuerySet[UserProfile, dict[str, Any]]`
- zerver/actions/user_groups.py:123:35 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[MemberGroupUserDict]`
+ zerver/actions/user_groups.py:123:35 error[invalid-assignment] Object of type `list[dict[str, Any]]` is not assignable to `list[MemberGroupUserDict]`
- zerver/actions/user_groups.py:128:30 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[MemberGroupUserDict]`
+ zerver/actions/user_groups.py:128:30 error[invalid-assignment] Object of type `list[dict[str, Any]]` is not assignable to `list[MemberGroupUserDict]`
- zerver/actions/user_groups.py:134:35 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[MemberGroupUserDict]`
+ zerver/actions/user_groups.py:134:35 error[invalid-assignment] Object of type `list[dict[str, Any]]` is not assignable to `list[MemberGroupUserDict]`
- zerver/actions/user_groups.py:137:30 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `list[MemberGroupUserDict]`
+ zerver/actions/user_groups.py:137:30 error[invalid-assignment] Object of type `list[dict[str, Any]]` is not assignable to `list[MemberGroupUserDict]`
+ zerver/lib/display_recipient.py:77:12 error[invalid-return-type] Return type does not match returned value: expected `dict[int, UserDisplayRecipient]`, found `dict[int, dict[str, Any] | UserDisplayRecipient]`
- zerver/lib/display_recipient.py:67:12 error[invalid-return-type] Return type does not match returned value: expected `list[UserDisplayRecipient]`, found `list[_T@list]`
+ zerver/lib/display_recipient.py:67:12 error[invalid-return-type] Return type does not match returned value: expected `list[UserDisplayRecipient]`, found `list[dict[str, Any]]`
- zerver/models/users.py:1161:12 error[invalid-return-type] Return type does not match returned value: expected `list[RawUserDict]`, found `list[_T@list]`
+ zerver/models/users.py:1161:12 error[invalid-return-type] Return type does not match returned value: expected `list[RawUserDict]`, found `list[dict[str, Any]]`
- zerver/models/users.py:1190:12 error[invalid-return-type] Return type does not match returned value: expected `list[RawUserDict]`, found `list[_T@list]`
+ zerver/models/users.py:1190:12 error[invalid-return-type] Return type does not match returned value: expected `list[RawUserDict]`, found `list[dict[str, Any]]`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.