[ty] Experiment: Top-materialize negative isinstance narrowing#26470
Draft
sharkdp wants to merge 15 commits into
Draft
[ty] Experiment: Top-materialize negative isinstance narrowing#26470sharkdp wants to merge 15 commits into
isinstance narrowing#26470sharkdp wants to merge 15 commits into
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 94.47%. The percentage of expected errors that received a diagnostic held steady at 89.19%. The number of fully passing files held steady at 95/134. |
Memory usage reportSummary
Significant changesClick to expand detailed breakdowntrio
flake8
sphinx
prefect
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-argument-type |
6 | 1,007 | 80 |
invalid-assignment |
3 | 222 | 35 |
unresolved-attribute |
0 | 128 | 38 |
invalid-return-type |
6 | 118 | 27 |
no-matching-overload |
0 | 104 | 0 |
invalid-key |
0 | 62 | 0 |
not-subscriptable |
2 | 49 | 3 |
unsupported-operator |
0 | 41 | 2 |
call-non-callable |
2 | 24 | 1 |
not-iterable |
0 | 20 | 3 |
invalid-yield |
0 | 15 | 1 |
index-out-of-bounds |
0 | 14 | 0 |
unused-type-ignore-comment |
9 | 4 | 0 |
redundant-cast |
2 | 9 | 0 |
unused-ignore-comment |
8 | 0 | 0 |
invalid-type-form |
0 | 2 | 2 |
invalid-raise |
0 | 2 | 0 |
possibly-unresolved-reference |
0 | 2 | 0 |
call-top-callable |
0 | 1 | 0 |
| Total | 38 | 1,824 | 192 |
Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.
Showing a random sample of 223 of 2054 changes. See the HTML report for the full diff.
Raw diff sample (223 of 2054 changes)
Expression (https://github.com/cognitedata/Expression)
- expression/collections/maptree.py:116:28 error[invalid-argument-type] Argument to function `mk` is incorrect: Expected `Option[MapTreeLeaf[Key@rebalance, object]]`, found `Option[MapTreeLeaf[Never, Never]]`
- expression/collections/maptree.py:121:24 error[invalid-return-type] Return type does not match returned value: expected `Option[MapTreeLeaf[Key@rebalance, Value@rebalance]]`, found `Option[MapTreeLeaf[Key@rebalance, object]]`
- expression/collections/maptree.py:133:62 error[invalid-argument-type] Argument to function `mk` is incorrect: Expected `Option[MapTreeLeaf[Key@rebalance, object]]`, found `Option[MapTreeLeaf[Never, Never]]`
- expression/collections/maptree.py:141:31 error[invalid-argument-type] Argument to function `mk` is incorrect: Expected `Option[MapTreeLeaf[Key@rebalance, object]]`, found `Option[MapTreeLeaf[Never, Never]]`
PyGithub (https://github.com/PyGithub/PyGithub)
- github/RepositoryAdvisory.py:291:71 error[invalid-argument-type] Argument to function `AdvisoryCredit._validate_credit` is incorrect: Expected `SimpleCredit | AdvisoryCredit`, found `object`
- github/RepositoryAdvisory.py:307:84 error[invalid-argument-type] Argument to function `AdvisoryVulnerability._to_github_dict` is incorrect: Expected `SimpleAdvisoryVulnerability | AdvisoryVulnerability`, found `object`
- github/AdvisoryVulnerability.py:129:59 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["package"]` on object of type `Top[dict[Unknown, Unknown]]`
- github/AdvisoryVulnerability.py:165:41 error[invalid-argument-type] Invalid argument to key "vulnerable_functions" with declared type `list[str] | None` on TypedDict `SimpleAdvisoryVulnerability`: value of type `object`
- github/AdvisoryVulnerability.py:165:41 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["vulnerable_functions"]` on object of type `Top[dict[Unknown, Unknown]]`
Tanjun (https://github.com/FasterSpeeding/Tanjun)
- tanjun/commands/slash.py:2078:97 error[invalid-assignment] Object of type `None | Mapping[str, str] | (Sequence[str] & Top[Mapping[Unknown, object]]) | (Sequence[tuple[str, str]] & Top[Mapping[Unknown, object]]) | (Sequence[CommandChoice] & Top[Mapping[Unknown, object]])` is not assignable to `Mapping[str, str] | list[CommandChoice] | None`
aiohttp (https://github.com/aio-libs/aiohttp)
- aiohttp/client.py:1207:37 error[invalid-argument-type] Argument to bound method `MultiDict.add` is incorrect: Expected `str`, found `object`
- aiohttp/cookiejar.py:332:23 error[invalid-assignment] Object of type `ItemsView[object, object]` is not assignable to `Mapping[str, str | BaseCookie[str] | Morsel[Any]] | Iterable[tuple[str, str | BaseCookie[str] | Morsel[Any]]] | BaseCookie[str]`
- aiohttp/web.py:349:25 error[invalid-argument-type] Argument to `UnixSite.__init__` is incorrect: Expected `str | PathLike[str]`, found `str | (Iterable[str | PathLike[str]] & PathLike[object]) | PathLike[str]`
aioredis (https://github.com/aio-libs/aioredis)
- aioredis/client.py:3430:34 error[invalid-assignment] Object of type `ValuesView[object]` is not assignable to `ValuesView[int | float] | None`
altair (https://github.com/vega/altair)
+ altair/vegalite/v6/api.py:2767:63 warning[unused-ignore-comment] Unused blanket `ty: ignore` directive
anyio (https://github.com/agronholm/anyio)
- src/anyio/_core/_sockets.py:994:38 error[invalid-argument-type] Argument is incorrect: Expected `str | IPv4Address | IPv6Address`, found `object`
- src/anyio/streams/stapled.py:125:21 error[not-subscriptable] Cannot delete subscript on object of type `Sequence[Listener[object]]` with no `__delitem__` method
+ src/anyio/streams/stapled.py:125:21 error[not-subscriptable] Cannot delete subscript on object of type `Sequence[Listener[Unknown]]` with no `__delitem__` method
apprise (https://github.com/caronc/apprise)
- tests/test_config_base.py:254:16 error[unresolved-attribute] Object of type `object` has no attribute `tags`
archinstall (https://github.com/archlinux/archinstall)
- archinstall/lib/profile/profiles_handler.py:132:19 error[unresolved-attribute] Object of type `object` has no attribute `name`
artigraph (https://github.com/artigraph/artigraph)
- src/arti/internal/type_hints.py:161:25 error[invalid-type-form] Variable of type `type` is not allowed in a type expression
+ src/arti/internal/type_hints.py:161:25 error[invalid-type-form] Variable of type `type[Unknown]` is not allowed in a type expression
beartype (https://github.com/beartype/beartype)
- beartype/vale/_is/_valeis.py:327:24 error[invalid-assignment] Object of type `object` is not assignable to `((Any, /) -> bool) | tuple[(Any, /) -> bool]`
black (https://github.com/psf/black)
- src/black/trans.py:301:20 error[invalid-raise] Cannot use object of type `object` as an exception cause
- src/black/trans.py:502:19 error[invalid-yield] Yield type `Ok[object]` does not match annotated yield type `Ok[Line] | Err[CannotTransform]`
bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/io/showing.py:165:33 error[invalid-argument-type] Argument to function `_show_with_state` is incorrect: Expected `Showable`, found `UIElement | DOMNode | Sequence[UIElement | DOMNode] | (Application & Sequence[object]) | (((Document, /) -> None) & Sequence[object])`
- src/bokeh/plotting/_plot.py:93:45 error[invalid-argument-type] Argument to `Range1d.__init__` is incorrect: Expected `Value`, found `int | float | (Unknown & ~None) | str | IntrinsicType`
+ src/bokeh/plotting/_plot.py:93:45 error[invalid-argument-type] Argument to `Range1d.__init__` is incorrect: Expected `Value`, found `(Unknown & ~None) | IntrinsicType`
boostedblob (https://github.com/hauntsaninja/boostedblob)
- boostedblob/boost.py:589:16 error[invalid-return-type] Return type does not match returned value: expected `T@blocking_dequeue_underlying`, found `object`
build (https://github.com/pypa/build)
- src/build/_builder.py:165:38 error[no-matching-overload] No overload of bound method `str.join` matches arguments
core (https://github.com/home-assistant/core)
- homeassistant/components/asuswrt/helpers.py:42:16 error[invalid-return-type] Return type does not match returned value: expected `T@translate_to_legacy`, found `dict[str, Any]`
+ homeassistant/components/asuswrt/helpers.py:42:16 error[invalid-return-type] Return type does not match returned value: expected `T@translate_to_legacy`, found `dict[Unknown, Any]`
- homeassistant/components/onvif/device.py:440:17 error[unresolved-attribute] Object of type `object` has no attribute `Name`
- homeassistant/components/onvif/device.py:445:25 error[unresolved-attribute] Object of type `object` has no attribute `VideoEncoderConfiguration`
- homeassistant/components/onvif/device.py:455:21 error[unresolved-attribute] Object of type `object` has no attribute `PTZConfiguration`
- homeassistant/components/rest/data.py:51:44 error[invalid-argument-type] Argument to constructor `BasicAuth.__new__` is incorrect: Expected `str`, found `object`
- homeassistant/components/ring/binary_sensor.py:170:9 error[invalid-assignment] Cannot assign to a subscript on an object of type `Mapping[str, Any]`
cwltool (https://github.com/common-workflow-language/cwltool)
- cwltool/builder.py:276:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `float`
- cwltool/builder.py:279:21 error[invalid-assignment] Cannot assign to a subscript on an object of type `float`
- cwltool/builder.py:279:24 error[invalid-key] Unknown key "streamable" for TypedDict `CWLDirectoryType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 3 union elements`)
- cwltool/checker.py:118:61 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["items"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:121:12 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Divergent, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Divergent]]` cannot be called with key of type `Literal["type"]` on object of type `MutableSequence[Divergent]`
- cwltool/checker.py:121:40 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:123:38 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:123:38 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:133:39 error[invalid-argument-type] Argument to function `can_assign_src_to_sink` is incorrect: Expected `int | str | float | ... omitted 6 union elements`, found `object`
- cwltool/command_line_tool.py:605:33 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["writable"]` and value of type `object` on object of type `MutableMapping[str, int | str | float | ... omitted 5 union elements]`
- cwltool/command_line_tool.py:642:60 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[Mapping[Unknown, object]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["entryname"]` on object of type `Top[Mapping[Unknown, object]]`
- cwltool/command_line_tool.py:1531:17 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/command_line_tool.py:1534:52 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["fields"]` on object of type `str`
- cwltool/load_tool.py:233:13 error[invalid-assignment] Cannot assign to a subscript on an object of type `int`
- cwltool/load_tool.py:233:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["id"]` and value of type `str` on object of type `MutableSequence[Divergent]`
- cwltool/main.py:283:27 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/main.py:283:58 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/main.py:297:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- cwltool/main.py:309:16 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/main.py:310:25 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["items"]` on object of type `str`
- cwltool/main.py:310:58 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["items"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/main.py:318:16 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["type"]` on object of type `str`
- cwltool/pack.py:33:40 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["run"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:47:38 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:47:40 error[invalid-key] Unknown key "name" for TypedDict `CWLDirectoryType` (subscripted object has type `(MutableMapping[str, int | str | float | ... omitted 5 union elements] & ~Top[MutableSequence[Unknown]]) | (int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 4 union elements`)
- cwltool/pack.py:94:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["id"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:94:39 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["id"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:94:41 error[invalid-key] Unknown key "id" for TypedDict `CWLDirectoryType` (subscripted object has type `(MutableMapping[str, int | str | float | ... omitted 5 union elements] & ~Top[MutableSequence[Unknown]]) | (int & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]] & ~Top[MutableSequence[Unknown]]) | ... omitted 4 union elements`)
- cwltool/pack.py:142:29 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["id"]` on object of type `str`
- cwltool/pack.py:149:33 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- cwltool/pack.py:237:13 error[invalid-argument-type] Argument to function `update` is incorrect: Expected `CommentedSeq | CommentedMap`, found `(int & Top[MutableMapping[Unknown, Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]]) | (CommentedMap & Top[MutableMapping[Unknown, Unknown]])`
+ cwltool/pack.py:237:13 error[invalid-argument-type] Argument to function `update` is incorrect: Expected `CommentedSeq | CommentedMap`, found `(int & MutableMapping[Unknown, Unknown]) | (float & MutableMapping[Unknown, Unknown]) | (str & MutableMapping[Unknown, Unknown]) | (CommentedMap & MutableMapping[Unknown, Unknown])`
- cwltool/process.py:329:51 error[invalid-argument-type] Argument to function `_collectDirEntries` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements] | MutableSequence[MutableMapping[str, int | str | float | ... omitted 5 union elements]] | int | ... omitted 7 union elements`, found `object`
- cwltool/process.py:1069:58 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["requirements"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/process.py:1069:58 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["requirements"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/process.py:1071:37 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["requirements"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/process.py:1226:26 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> CWLFileType | CWLDirectoryType | MutableMapping[str, int | str | float | ... omitted 5 union elements], (index: slice[int | None, int | None, int | None], /) -> Sequence[CWLFileType | CWLDirectoryType | MutableMapping[str, int | str | float | ... omitted 5 union elements]]]` cannot be called with key of type `Literal["id"]` on object of type `Sequence[CWLFileType | CWLDirectoryType | MutableMapping[str, int | str | float | ... omitted 5 union elements]]`
- cwltool/process.py:1227:58 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> CWLFileType | CWLDirectoryType | MutableMapping[str, int | str | float | ... omitted 5 union elements], (index: slice[int | None, int | None, int | None], /) -> Sequence[CWLFileType | CWLDirectoryType | MutableMapping[str, int | str | float | ... omitted 5 union elements]]]` cannot be called with key of type `Literal["id"]` on object of type `Sequence[CWLFileType | CWLDirectoryType | MutableMapping[str, int | str | float | ... omitted 5 union elements]]`
- cwltool/workflow_job.py:357:36 error[invalid-argument-type] Argument to bound method `list.extend` is incorrect: Expected `Iterable[int | str | float | ... omitted 5 union elements]`, found `(int & Top[MutableSequence[Unknown]]) | (str & Top[MutableSequence[Unknown]]) | (float & Top[MutableSequence[Unknown]]) | MutableSequence[Divergent] | (MutableMapping[str, Divergent] & Top[MutableSequence[Unknown]])`
- tests/test_examples.py:348:26 error[invalid-key] TypedDict `CWLFileType` can only be subscripted with a string literal key, got key of type `Literal[0]`
- tests/test_examples.py:349:12 error[not-subscriptable] Cannot subscript object of type `int` with no `__getitem__` method
- tests/test_examples.py:363:12 error[not-subscriptable] Cannot subscript object of type `None` with no `__getitem__` method
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ddtrace/llmobs/_evaluators/llm_judge.py:702:59 error[invalid-argument-type] Argument to bound method `LLMClient.__call__` is incorrect: Expected `dict[str, Any] | None`, found `None | (BooleanStructuredOutput & Top[dict[Unknown, Unknown]] & ~AlwaysFalsy) | (ScoreStructuredOutput & Top[dict[Unknown, Unknown]] & ~AlwaysFalsy) | ... omitted 3 union elements`
- ddtrace/llmobs/_evaluators/llm_judge.py:812:50 error[invalid-argument-type] Argument to function `LLMJudge._format_schema_for_provider` is incorrect: Expected `dict[str, Any]`, found `(BooleanStructuredOutput & Top[dict[Unknown, Unknown]]) | (ScoreStructuredOutput & Top[dict[Unknown, Unknown]]) | (CategoricalStructuredOutput & Top[dict[Unknown, Unknown]]) | dict[str, str | int | float | ... omitted 3 union elements]`
- ddtrace/llmobs/_experiment.py:2586:97 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["message"]` on object of type `Top[dict[Unknown, Unknown]]`
- ddtrace/llmobs/_integrations/bedrock_agents.py:101:12 error[unresolved-attribute] Object of type `object` has no attribute `get`
discord.py (https://github.com/Rapptz/discord.py)
- discord/ext/commands/core.py:2632:32 error[invalid-argument-type] Argument to bound method `Command.before_invoke` is incorrect: Expected `((object, Unknown, /) -> Coroutine[Any, Any, Any]) | ((Unknown, /) -> Coroutine[Any, Any, Any])`, found `((CogT@before_invoke, ContextT@before_invoke, /) -> Coroutine[Any, Any, Any]) | ((ContextT@before_invoke, /) -> Coroutine[Any, Any, Any])`
- discord/ui/section.py:192:31 error[invalid-argument-type] Argument to bound method `list.append` is incorrect: Expected `Item[V@Section]`, found `(str & Item[object]) | Item[Any]`
dulwich (https://github.com/dulwich/dulwich)
- dulwich/worktree.py:395:20 error[invalid-assignment] Object of type `list[_T@list]` is not assignable to `Iterable[str | bytes | PathLike[str]] | bytes | PathLike[str]`
- dulwich/worktree.py:406:24 error[not-iterable] Object of type `Iterable[str | bytes | PathLike[str]] | bytes | PathLike[str]` may not be iterable
freqtrade (https://github.com/freqtrade/freqtrade)
- freqtrade/util/rich_tables.py:32:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> str | Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
- freqtrade/util/rich_tables.py:32:47 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> str | Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[str | Unknown]]` cannot be called with key of type `str` on object of type `Sequence[str | Unknown]`
graphql-core (https://github.com/graphql-python/graphql-core)
- tests/execution/test_hooks.py:354:16 error[unresolved-attribute] Object of type `object` has no attribute `errors`
- tests/execution/test_hooks.py:355:16 error[unresolved-attribute] Object of type `object` has no attribute `errors`
hydpy (https://github.com/hydpy-dev/hydpy)
- hydpy/cythons/modelutils.py:1031:41 error[invalid-argument-type] Argument to bound method `PyxWriter.set_pointer` is incorrect: Expected `InputSequences[Model] | OutputSequences[Model, OutputSequence] | LinkSequences[Model, LinkSequence]`, found `InputSequences[Model] | FactorSequences[Model] | FluxSequences[Model] | ... omitted 15 union elements`
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/structured_configs/_utils.py:367:16 error[invalid-key] TypedDict `DataclassOptions` can only be subscripted with a string literal key, got key of type `str`.
- src/hydra_zen/wrapper/_implementations.py:1735:52 error[invalid-assignment] Object of type `((x: str | None) -> object) | (((str | None, /) -> str | None) & ~Top[Mapping[Unknown, object]])` is not assignable to `(str | None, /) -> str | None`
ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/relations.py:4526:23 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[Mapping[Unknown, object]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[Mapping[Unknown, object]]`
- ibis/expr/types/relations.py:4526:23 error[call-non-callable] Object of type `object` is not callable
jax (https://github.com/google/jax)
- jax/_src/random/stateful_rng.py:43:28 error[invalid-argument-type] Argument to function `index` is incorrect: Expected `SupportsIndex`, found `int | (Sequence[int] & Top[number[Any, int | float | complex]])`
+ jax/_src/random/stateful_rng.py:43:28 error[invalid-argument-type] Argument to function `index` is incorrect: Expected `SupportsIndex`, found `int | (Sequence[int] & number[Any, int | float | complex])`
- jax/experimental/mosaic/gpu/launch_context.py:1884:31 error[invalid-argument-type] Argument to bound method `LaunchContext._prepare_async_copy` is incorrect: Expected `tuple[MemRefTransform, ...]`, found `(MemRefTransform & tuple[object, ...]) | tuple[MemRefTransform, ...]`
kopf (https://github.com/nolar/kopf)
- kopf/_core/engines/admission.py:274:40 error[call-non-callable] Object of type `object` is not callable
- kopf/_kits/webhacks.py:92:42 error[invalid-argument-type] Argument to bound method `list.remove` is incorrect: Expected `AsyncGenerator[WebhookClientConfig, None]`, found `AsyncIterator[WebhookClientConfig] & AsyncGenerator[object, None]`
meson (https://github.com/mesonbuild/meson)
- mesonbuild/interpreterbase/_unholder.py:18:16 error[invalid-return-type] Return type does not match returned value: expected `Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 5 union elements`, found `HoldableObject | int | str | Top[list[Unknown]] | Top[dict[Unknown, Unknown]]`
- mesonbuild/cmake/interpreter.py:1048:40 error[invalid-argument-type] Argument to function `nodeify` is incorrect: Expected `Sequence[str | int | Path | BaseNode] | int | Path | BaseNode`, found `~None`
- mesonbuild/cmake/interpreter.py:1058:41 error[invalid-argument-type] Argument to function `nodeify` is incorrect: Expected `Sequence[str | int | Path | BaseNode] | int | Path | BaseNode`, found `~None`
- mesonbuild/interpreterbase/decorators.py:757:64 error[invalid-argument-type] Argument to function `version_compare_condition_with_min` is incorrect: Expected `str | Range[Version]`, found `Range[Version] | (NoProjectVersion & Top[Range[Unknown]])`
- mesonbuild/modules/__init__.py:89:52 error[invalid-argument-type] Argument to bound method `Interpreter.find_program_impl` is incorrect: Expected `list[File | str]`, found `(File & Top[list[Unknown]]) | list[File | str]`
mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/http.py:1081:67 warning[unused-type-ignore-comment] Unused blanket `type: ignore` directive
mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/config/config_options.py:846:67 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["custom_dir"]` on object of type `Top[dict[Unknown, Unknown]]`
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pymongo/helpers_shared.py:189:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[Mapping[Unknown, object]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[Mapping[Unknown, object]]`
- pymongo/helpers_shared.py:330:16 error[invalid-return-type] Return type does not match returned value: expected `Mapping[str, Any]`, found `Iterable[str] & Top[Mapping[Unknown, object]]`
mypy (https://github.com/python/mypy)
- mypy/server/astdiff.py:157:78 error[invalid-argument-type] Argument to function `compare_symbol_table_snapshots` is incorrect: Expected `dict[str, tuple[object, ...]]`, found `Top[dict[Unknown, Unknown]]`
- mypy/strconv.py:688:29 error[invalid-argument-type] Argument to function `dump_tagged` is incorrect: Expected `Sequence[object]`, found `object`
- mypy/test/test_diff_cache.py:126:56 error[unresolved-attribute] Object of type `object` has no attribute `startswith`
- mypy/test/test_diff_cache.py:128:56 error[unresolved-attribute] Object of type `object` has no attribute `startswith`
operator (https://github.com/canonical/operator)
- ops/pebble.py:2682:36 error[invalid-argument-type] Argument to `Layer.__init__` is incorrect: Expected `str | LayerDict | None`, found `(LayerDict & Top[dict[Unknown, Unknown]]) | (Layer & Top[dict[Unknown, Unknown]])`
+ ops/pebble.py:2682:36 error[invalid-argument-type] Argument to `Layer.__init__` is incorrect: Expected `str | LayerDict | None`, found `(LayerDict & dict[Unknown, Unknown]) | (Layer & dict[Unknown, Unknown])`
packaging (https://github.com/pypa/packaging)
- src/packaging/markers.py:436:27 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["_markers"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/packaging/specifiers.py:488:31 error[unresolved-attribute] Object of type `object` has no attribute `get`
- src/packaging/tags.py:212:32 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- src/packaging/version.py:791:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_local` of type `tuple[int | str, ...] | None`
- src/packaging/version.py:799:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_release` of type `tuple[int, ...]`
- src/packaging/version.py:802:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_dev` of type `tuple[Literal["dev"], int] | None`
- src/packaging/version.py:812:29 error[unresolved-attribute] Object of type `~None` has no attribute `pre`
pandas (https://github.com/pandas-dev/pandas)
- pandas/core/ops/mask_ops.py:121:18 error[unsupported-operator] Operator `^` is not supported between objects of type `ndarray[tuple[Any, ...], dtype[Any]] | (NAType & ndarray[tuple[object, ...], dtype[object]])` and `bool | ndarray[tuple[Any, ...], dtype[Any]] | NAType`
- pandas/core/ops/mask_ops.py:171:18 error[unsupported-operator] Operator `&` is not supported between objects of type `(NAType & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[Any, ...], dtype[Any]]` and `bool | NAType | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/core/common.py:467:38 error[invalid-argument-type] Argument to `RandomState.__init__` is incorrect: Expected `_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any]]]] | int | ... omitted 3 union elements`, found `int | integer[Any] | ndarray[tuple[Any, ...], dtype[Any]] | ... omitted 3 union elements`
- pandas/core/construction.py:353:28 error[invalid-argument-type] Argument to bound method `MaskedArray.filled` is incorrect: Argument type `ndarray[tuple[Any, ...], dtype[Any]] & MaskedArray[tuple[object, ...], dtype[object]]` does not satisfy upper bound `MaskedArray[_ShapeT_co@MaskedArray, _DTypeT_co@MaskedArray]` of type variable `Self`
- pandas/core/construction.py:681:47 error[unresolved-attribute] Attribute `storage` is not defined on `dtype[object]` in union `Unknown | dtype[object] | StringDtype`
+ pandas/core/construction.py:681:47 error[unresolved-attribute] Object of type `dtype[Any] | ExtensionDtype` has no attribute `storage`
- pandas/core/frame.py:2187:21 error[invalid-argument-type] Argument to function `maybe_reorder` is incorrect: Expected `list[ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]]`, found `list[object]`
- pandas/core/nanops.py:1483:30 error[no-matching-overload] No overload of bound method `ndarray.astype` matches arguments
- pandas/core/reshape/concat.py:808:12 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `Iterable[Series | DataFrame] | Mapping[HashableT@_clean_keys_and_objs, Series | DataFrame]`
- pandas/core/sorting.py:373:31 error[unsupported-operator] Unary operator `-` is not supported for object of type `(ExtensionArray & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[Any, ...], dtype[Any]] | (Index & ndarray[tuple[object, ...], dtype[object]]) | (Series & ndarray[tuple[object, ...], dtype[object]])`
- pandas/io/excel/_base.py:867:17 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `list[Hashable]` on object of type `list[Unknown]`
- pandas/io/excel/_base.py:870:54 error[invalid-argument-type] Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Unknown, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Unknown]]` cannot be called with key of type `object` on object of type `list[Unknown]`
- pandas/io/formats/printing.py:280:13 error[no-matching-overload] No overload of bound method `MutableMapping.update` matches arguments
- pandas/io/pytables.py:5445:26 error[no-matching-overload] No overload of bound method `ndarray.reshape` matches arguments
- pandas/plotting/_matplotlib/core.py:427:48 error[invalid-argument-type] Argument to bound method `Index.get_indexer_for` is incorrect: Expected `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Index | ... omitted 3 union elements`, found `Sequence[str]`
pandera (https://github.com/pandera-dev/pandera)
- pandera/io/_minimal.py:152:38 error[invalid-argument-type] Argument to function `prune_component_dict` is incorrect: Expected `dict[str, Any]`, found `Top[dict[Unknown, Unknown]]`
- pandera/io/_minimal.py:257:38 error[invalid-argument-type] Argument to function `prune_component_dict` is incorrect: Expected `dict[str, Any]`, found `Top[dict[Unknown, Unknown]]`
pip (https://github.com/pypa/pip)
- src/pip/_internal/utils/subprocess.py:29:33 error[invalid-argument-type] Argument to bound method `list.extend` is incorrect: Expected `Iterable[str | HiddenText]`, found `(HiddenText & Top[list[Unknown]]) | list[str | HiddenText]`
- src/pip/_vendor/packaging/specifiers.py:1496:17 error[invalid-assignment] Object of type `tuple[object, ...]` is not assignable to attribute `_specs` of type `tuple[Specifier, ...]`
- src/pip/_vendor/packaging/version.py:815:29 error[unresolved-attribute] Object of type `~None` has no attribute `dev`
- src/pip/_vendor/packaging/version.py:294:20 error[invalid-return-type] Return type does not match returned value: expected `tuple[Literal["a", "b", "rc"], int] | None`, found `tuple[str, int]`
+ src/pip/_vendor/packaging/version.py:294:20 error[invalid-return-type] Return type does not match returned value: expected `tuple[Literal["a", "b", "rc"], int] | None`, found `tuple[str, Unknown & int]`
- src/pip/_vendor/requests/structures.py:82:72 error[invalid-argument-type] Argument to `CaseInsensitiveDict.__init__` is incorrect: Expected `Mapping[str, Any] | Iterable[tuple[str, Any]] | None`, found `Top[Mapping[Unknown, object]]`
- src/pip/_vendor/resolvelib/structs.py:206:12 error[invalid-return-type] Return type does not match returned value: expected `Iterable[CT@build_iter_view]`, found `_SequenceIterableView[RT@_SequenceIterableView]`
porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/filetypes.py:33:49 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `object` on object of type `Top[dict[Unknown, Unknown]]`
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/_internal/engine.py:93:13 error[unresolved-attribute] Object of type `(...) -> object` has no attribute `__name__`
+ src/prefect/_internal/engine.py:93:13 error[unresolved-attribute] Object of type `(...) -> Unknown` has no attribute `__name__`
- src/prefect/cli/events.py:197:9 error[invalid-argument-type] Argument is incorrect: Expected `Resource`, found `dict[str, str] | (Any & Top[dict[Unknown, Unknown]])`
+ src/prefect/cli/events.py:197:9 error[invalid-argument-type] Argument is incorrect: Expected `Resource`, found `dict[str, str] | (Any & dict[Unknown, Unknown])`
- src/prefect/cli/events.py:198:9 error[invalid-argument-type] Argument is incorrect: Expected `list[RelatedResource]`, found `(list[Any & Top[dict[Unknown, Unknown]]] & ~AlwaysFalsy) | (Any & Top[list[Unknown]] & ~AlwaysFalsy) | list[RelatedResource]`
+ src/prefect/cli/events.py:198:9 error[invalid-argument-type] Argument is incorrect: Expected `list[RelatedResource]`, found `(list[Any & dict[Unknown, Unknown]] & ~AlwaysFalsy) | (Any & list[Unknown] & ~AlwaysFalsy) | list[RelatedResource]`
- src/prefect/task_engine.py:679:33 error[invalid-argument-type] Argument to constructor `timedelta.__new__` is incorrect: Expected `int | float`, found `object`
pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/heap/ptmalloc.py:586:30 error[call-non-callable] Object of type `~None & ~Type` is not callable
- pwndbg/aglib/heap/ptmalloc.py:504:45 error[unresolved-attribute] Object of type `object` has no attribute `sizeof`
+ pwndbg/aglib/heap/ptmalloc.py:504:45 error[unresolved-attribute] Attribute `sizeof` is not defined on `None` in union `Unknown | None`
- pwndbg/aglib/heap/ptmalloc.py:507:25 error[unresolved-attribute] Object of type `object` has no attribute `sizeof`
+ pwndbg/aglib/heap/ptmalloc.py:507:25 error[unresolved-attribute] Attribute `sizeof` is not defined on `None` in union `Unknown | None`
- pwndbg/commands/ptmalloc2.py:1519:18 error[unresolved-attribute] Object of type `~None` has no attribute `keys`
pyproject-metadata (https://github.com/pypa/pyproject-metadata)
- pyproject_metadata/pyproject.py:80:12 error[invalid-return-type] Return type does not match returned value: expected `list[str] | None`, found `Top[list[Unknown]]`
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/config/findpaths.py:156:28 error[invalid-return-type] Return type does not match returned value: expected `str | list[str]`, found `Top[list[Unknown]] | str`
- src/_pytest/python.py:1045:34 error[invalid-argument-type] Argument to function `ascii_escaped` is incorrect: Expected `bytes | str`, found `object`
schema_salad (https://github.com/common-workflow-language/schema_salad)
- src/schema_salad/python_codegen_support.py:641:23 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["$base"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/python_codegen_support.py:655:22 error[invalid-argument-type] Argument to bound method `MutableMapping.pop` is incorrect: Expected `Never`, found `Literal["$schemas"]`
- src/schema_salad/avro/schema.py:813:38 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["symbols"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/schema_salad/avro/schema.py:813:59 error[invalid-argument-type] Argument to function `is_subtype` is incorrect: Expected `None | str | int | ... omitted 6 union elements`, found `object`
- src/schema_salad/jsonld_context.py:54:24 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["symbol"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/jsonld_context.py:211:30 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/jsonld_context.py:211:30 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/jsonld_context.py:211:30 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `str` on object of type `str`
- src/schema_salad/jsonld_context.py:216:28 error[invalid-argument-type] Argument to function `fix_jsonld_ids` is incorrect: Expected `CommentedMap | int | float | str | CommentedSeq`, found `object`
- src/schema_salad/metaschema.py:659:41 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `str` on object of type `MutableSequence[Any]`
- src/schema_salad/metaschema.py:677:22 error[invalid-argument-type] Argument to bound method `MutableSequence.pop` is incorrect: Expected `int`, found `Literal["$schemas"]`
- src/schema_salad/ref_resolver.py:403:43 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["subscope"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/ref_resolver.py:496:32 error[invalid-argument-type] Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `Literal["$graph"]` on object of type `str`
- src/schema_salad/ref_resolver.py:1135:25 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- src/schema_salad/schema.py:543:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- src/schema_salad/schema.py:543:56 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:559:38 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["name"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Any, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Any]]` cannot be called with key of type `Literal["names"]` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["items"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:564:21 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/schema.py:572:13 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["symbols"]` and value of type `list[str]` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:572:64 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["symbols"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/specs/openapi/converter.py:520:12 error[invalid-return-type] Return type does not match returned value: expected `TypeGuard[dict[str, Any]]`, found `object`
- src/schemathesis/specs/openapi/adapter/responses.py:441:12 error[invalid-return-type] Return type does not match returned value: expected `str | None`, found `object`
- src/schemathesis/transport/requests.py:386:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `NotSet`
- src/schemathesis/transport/requests.py:387:40 error[invalid-argument-type] Argument to function `_prepare_form_data` is incorrect: Expected `dict[str, Any]`, found `dict[str, Divergent] | (NotSet & Top[dict[Unknown, Unknown]])`
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/metadata/__init__.py:107:16 error[invalid-return-type] Return type does not match returned value: expected `T@_process_dynamic_metadata`, found `dict[str, dict[str, str]]`
+ src/scikit_build_core/metadata/__init__.py:107:16 error[invalid-return-type] Return type does not match returned value: expected `T@_process_dynamic_metadata`, found `dict[str & Unknown, dict[str, str]]`
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/metrics/tests/test_common.py:1305:13 error[invalid-assignment] Object of type `str` is not assignable to attribute `__name__` on type `(Unknown & Top[partial[Unknown]]) | partial[(...) -> Unknown] | (((...) -> Unknown) & Top[partial[Unknown]])`
+ sklearn/metrics/tests/test_common.py:1305:13 error[invalid-assignment] Object of type `str` is not assignable to attribute `__name__` on type `(Unknown & partial[Unknown]) | partial[(...) -> Unknown] | (((...) -> Unknown) & partial[Unknown])`
scipy (https://github.com/scipy/scipy)
- scipy/_lib/_util.py:1019:21 error[invalid-argument-type] Argument to constructor `map.__new__` is incorrect: Expected `(object, /) -> int`, found `def len(obj: Sized, /) -> int`
- subprojects/highs/highs/highspy/highs.py:663:58 error[invalid-assignment] Object of type `(Any & Top[Mapping[Unknown, object]] & ~float & ~int) | (Mapping[Any, Any] & ~float & ~int) | (Sequence[Any] & Top[Mapping[Unknown, object]] & ~float & ~int)` is not assignable to `Mapping[Any, int | float]`
scrapy (https://github.com/scrapy/scrapy)
- scrapy/core/scraper.py:423: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]`
setuptools (https://github.com/pypa/setuptools)
- setuptools/_distutils/command/build_ext.py:418:39 error[invalid-argument-type] Argument to `Extension.__init__` is incorrect: Expected `Iterable[str | PathLike[str]]`, found `object`
spark (https://github.com/apache/spark)
- python/pyspark/ml/linalg/__init__.py:469:16 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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `slice[Any, Any, Any]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- python/pyspark/ml/linalg/__init__.py:703:27 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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `ndarray[tuple[Any, ...], dtype[Unknown]]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- python/pyspark/mllib/feature.py:636:33 error[invalid-argument-type] Argument to bound method `RDD.map` is incorrect: Expected `(object, /) -> Vector | RDD[Vector]`, found `Overload[(document: Iterable[Hashable]) -> Vector, (document: RDD[Iterable[Hashable]]) -> RDD[Vector]]`
- python/pyspark/mllib/linalg/__init__.py:862:20 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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `Unknown` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- python/pyspark/sql/connect/dataframe.py:1066:26 error[invalid-assignment] Object of type `(Column & Top[list[Unknown]]) | list[int | float | str]` is not assignable to `tuple[int | float | str | Column | list[int | float | str], ...]`
+ python/pyspark/sql/connect/dataframe.py:1066:26 error[invalid-assignment] Object of type `(Column & list[Unknown]) | list[int | float | str]` is not assignable to `tuple[int | float | str | Column | list[int | float | str], ...]`
- python/pyspark/sql/connect/expressions.py:511:22 error[not-iterable] Object of type `(Any & Top[list[Unknown]]) | (Any & Decimal) | (Any & bytes) | ... omitted 4 union elements` may not be iterable
+ python/pyspark/sql/connect/expressions.py:511:22 error[not-iterable] Object of type `(Any & list[Unknown]) | (Any & Decimal) | (Any & bytes) | ... omitted 4 union elements` may not be iterable
- python/pyspark/sql/connect/functions/builtin.py:2419:16 error[invalid-assignment] Object of type `(Column & Top[list[Unknown]]) | (Sequence[Column | str] & Top[list[Unknown]]) | (Column & Top[set[Unknown]]) | ... omitted 3 union elements` is not assignable to `tuple[Column | Sequence[Column | str], ...]`
+ python/pyspark/sql/connect/functions/builtin.py:2419:16 error[invalid-assignment] Object of type `(Column & list[Unknown]) | (Sequence[Column | str] & list[Unknown]) | (Column & set[Unknown]) | ... omitted 3 union elements` is not assignable to `tuple[Column | Sequence[Column | str], ...]`
- python/pyspark/sql/connect/plan.py:1930:48 error[call-non-callable] Object of type `Column` is not callable
- python/pyspark/sql/connect/plan.py:2070:43 error[call-non-callable] Object of type `Column` is not callable
- python/pyspark/sql/pandas/conversion.py:993:25 error[invalid-argument-type] Argument to bound method `StructType.add` is incorrect: Expected `str`, found `object`
+ python/pyspark/sql/pandas/conversion.py:993:25 error[invalid-argument-type] Argument to bound method `StructType.add` is incorrect: Expected `str`, found `Unknown | str | StructField`
- python/pyspark/sql/session.py:1642: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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `tuple[slice[None, None, None], int]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
- python/pyspark/testing/pandasutils.py:269:17 error[invalid-argument-type] Argument to `PySparkAssertionError.__init__` is incorrect: Expected `dict[str, str] | None`, found `dict[str, str | (DataFrame & Top[Index[Any]]) | (Series[Any] & Top[Index[Any]]) | Index[Any]]`
+ python/pyspark/testing/pandasutils.py:269:17 error[invalid-argument-type] Argument to `PySparkAssertionError.__init__` is incorrect: Expected `dict[str, str] | None`, found `dict[str, str | Index[Any]]`
- python/pyspark/testing/utils.py:1036:45 error[invalid-argument-type] Argument to function `rename_dataframe_columns` is incorrect: Expected `pyspark.sql.dataframe.DataFrame`, found `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & Top[list[Unknown]]) | (pyspark.pandas.frame.DataFrame[Unknown] & Top[list[Unknown]]) | list[Row] | Unknown`
+ python/pyspark/testing/utils.py:1036:45 error[invalid-argument-type] Argument to function `rename_dataframe_columns` is incorrect: Expected `pyspark.sql.dataframe.DataFrame`, found `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & list[Unknown]) | (pyspark.pandas.frame.DataFrame[Unknown] & list[Unknown]) | list[Row] | Unknown`
- python/pyspark/testing/utils.py:1054:43 error[invalid-argument-type] Argument to function `cast_columns_to_string` is incorrect: Expected `pyspark.sql.dataframe.DataFrame`, found `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & Top[list[Unknown]]) | (pyspark.pandas.frame.DataFrame[Unknown] & Top[list[Unknown]]) | list[Row] | Unknown`
+ python/pyspark/testing/utils.py:1054:43 error[invalid-argument-type] Argument to function `cast_columns_to_string` is incorrect: Expected `pyspark.sql.dataframe.DataFrame`, found `pyspark.sql.dataframe.DataFrame | (pandas.core.frame.DataFrame & list[Unknown]) | (pyspark.pandas.frame.DataFrame[Unknown] & list[Unknown]) | list[Row] | Unknown`
static-frame (https://github.com/static-frame/static-frame)
- static_frame/test/unit/test_index_correspondence.py:22:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments
- static_frame/core/container_util.py:1773:20 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Hashable | int | integer[Any] | ... omitted 10 union elements, (index: slice[int | None, int | None, int | None], /) -> Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]` cannot be called with key of type `Top[integer[Any]]` on object of type `Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]`
+ static_frame/core/container_util.py:1773:20 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Hashable | int | integer[Any] | ... omitted 10 union elements, (index: slice[int | None, int | None, int | None], /) -> Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]` cannot be called with key of type `integer[Any]` on object of type `Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]`
- static_frame/core/store_config.py:71:16 error[invalid-return-type] Return type does not match returned value: expected `None | str | dtype[Any] | ... omitted 3 union elements`, found `(Iterable[str | dtype[Any] | type | None] & Top[dict[Unknown, Unknown]]) | dict[Hashable | int | integer[Any] | ... omitted 10 union elements, str | dtype[Any] | type | None]`
- static_frame/core/type_blocks.py:3293:35 error[invalid-argument-type] Argument to bound method `TypeBlocks._drop_blocks` is incorrect: Expected `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`, found `object`
- static_frame/core/type_blocks.py:3597:24 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- static_frame/test/unit/test_util.py:1318:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments
- static_frame/test/unit/test_util.py:1323:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments
steam.py (https://github.com/Gobot1234/steam.py)
- steam/trade.py:397:13 error[invalid-assignment] Object of type `Sequence[SendingAssetT@TradeOffer] | (SendingAssetT@TradeOffer & Sequence[object]) | list[Unknown]` is not assignable to `Sequence[SendingAssetT@TradeOffer]`: Incompatible value of type `Sequence[SendingAssetT@TradeOffer] | (SendingAssetT@TradeOffer & Sequence[object]) | list[Unknown]`
sympy (https://github.com/sympy/sympy)
- sympy/physics/quantum/operatorset.py:117:33 error[call-non-callable] Object of type `object` is not callable
- sympy/polys/domains/polynomialring.py:64:16 error[invalid-return-type] Return type does not match returned value: expected `PolyElement[Er@PolynomialRing]`, found `PolyElement[Er@PolynomialRing] | PolyElement[Er@PolyRing]`
+ sympy/polys/domains/polynomialring.py:64:16 error[invalid-return-type] Return type does not match returned value: expected `PolyElement[Er@PolynomialRing]`, found `PolyElement[Unknown] | PolyElement[Er@PolynomialRing] | PolyElement[Er@PolyRing]`
- sympy/tensor/array/arrayop.py:514:31 error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `(Unknown & Iterable[object] & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase) | (NDimArray & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase)`
+ sympy/tensor/array/arrayop.py:514:31 error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `(Unknown & Iterable[Unknown] & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase) | (NDimArray & <Protocol with members '__next__'> & ~DenseNDimArray & ~SparseNDimArray & ~MatrixBase)`
tornado (https://github.com/tornadoweb/tornado)
- tornado/gen.py:550:27 error[invalid-argument-type] Argument to bound method `set.add` is incorrect: Expected `Future[Unknown]`, found `_S@map`
- tornado/routing.py:351:33 error[invalid-argument-type] Argument to `Rule.__init__` is incorrect: Expected `Matcher`, found `object`
vision (https://github.com/pytorch/vision)
- torchvision/transforms/v2/_utils.py:69:41 error[invalid-argument-type] Argument to function `_convert_fill_arg` is incorrect: Expected `int | float | Sequence[int | float] | None`, found `object`
werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/middleware/shared_data.py:121:23 error[invalid-assignment] Object of type `ItemsView[object, object]` is not assignable to `Mapping[str, str | tuple[str, str]] | Iterable[tuple[str, str | tuple[str, str]]]`
xarray (https://github.com/pydata/xarray)
- xarray/backends/common.py:197:51 error[invalid-argument-type] Argument to function `_normalize_path_list` is incorrect: Expected `NestedSequence[str | PathLike[Unknown] | ReadBuffer[Unknown]]`, found `(ReadBuffer[Unknown] & Top[list[Unknown]] & ~PathLike[object]) | (NestedSequence[str | PathLike[Unknown] | ReadBuffer[Unknown]] & Top[list[Unknown]] & ~PathLike[object])`
- xarray/backends/common.py:200:16 error[invalid-return-type] Return type does not match returned value: expected `NestedSequence[str | ReadBuffer[Unknown]]`, found `list[str | PathLike[Unknown] | ReadBuffer[Unknown] | NestedSequence[str | PathLike[Unknown] | ReadBuffer[Unknown]]]`
+ xarray/backends/common.py:200:16 error[invalid-return-type] Return type does not match returned value: expected `NestedSequence[str | ReadBuffer[Unknown]]`, found `list[str | PathLike[Unknown] | NestedSequence[str | PathLike[Unknown] | ReadBuffer[Unknown]] | ReadBuffer[Unknown]]`
- xarray/core/indexing.py:411:19 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, ...], dtype[object]], (key: SupportsIndex | tuple[SupportsIndex, ...], /) -> Any, (key: SupportsIndex | slice[Any, Any, Any] | EllipsisType | ... omitted 5 union elements, /) -> ndarray[tuple[Any, ...], dtype[object]]]` cannot be called with key of type `ndarray[Any, dtype[integer[Any]]]` on object of type `ndarray[tuple[object, ...], dtype[object]]`
zulip (https://github.com/zulip/zulip)
- scripts/lib/supervisor.py:54:20 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- zerver/lib/event_schema.py:465:37 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- zerver/lib/export.py:2619:9 error[invalid-assignment] Cannot assign to a subscript on an object of type `object`
- zerver/lib/push_notifications.py:609:31 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["android_devices"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/push_notifications.py:642:20 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["can_push"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/validator.py:275:24 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `object` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/validator.py:526:58 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/validator.py:557:8 error[invalid-argument-type] Method `__getitem__` of type `bound method Top[dict[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `Literal["type"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/openapi/openapi.py:50:38 error[invalid-argument-type] Argument to function `naively_merge` is incorrect: Expected `dict[str, object]`, found `Top[dict[Unknown, Unknown]]`
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.