[ty] Experiment: Relaxed isinstance narrowing#26361
Draft
sharkdp wants to merge 5 commits into
Draft
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 breakdownprefect
trio
flake8
sphinx
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-argument-type |
149 | 989 | 144 |
unresolved-attribute |
139 | 142 | 103 |
invalid-assignment |
58 | 221 | 57 |
invalid-return-type |
53 | 117 | 39 |
no-matching-overload |
47 | 100 | 0 |
call-top-callable |
129 | 1 | 0 |
invalid-await |
110 | 3 | 2 |
unsupported-operator |
20 | 43 | 6 |
invalid-key |
0 | 62 | 0 |
not-subscriptable |
8 | 49 | 3 |
call-non-callable |
18 | 23 | 1 |
not-iterable |
14 | 18 | 8 |
invalid-yield |
2 | 15 | 1 |
index-out-of-bounds |
0 | 14 | 0 |
redundant-cast |
2 | 10 | 0 |
unused-type-ignore-comment |
5 | 5 | 0 |
unused-ignore-comment |
8 | 0 | 0 |
invalid-type-form |
0 | 2 | 2 |
invalid-raise |
0 | 2 | 0 |
possibly-unresolved-reference |
0 | 2 | 0 |
unknown-argument |
2 | 0 | 0 |
deprecated |
1 | 0 | 0 |
too-many-positional-arguments |
1 | 0 | 0 |
type-assertion-failure |
0 | 0 | 1 |
| Total | 766 | 1,818 | 367 |
Large timing changes:
| Project | Old Time | New Time | Change |
|---|---|---|---|
static-frame |
0.75s | 1.38s | +83% |
Flaky changes detected. This PR summary excludes flaky changes; see the HTML report for details.
Showing a random sample of 218 of 2951 changes. See the HTML report for the full diff.
Raw diff sample (218 of 2951 changes)
Expression (https://github.com/cognitedata/Expression)
- expression/collections/maptree.py:121:51 error[invalid-argument-type] Argument to function `mk` is incorrect: Argument type `object` does not satisfy upper bound `SupportsLessThan` of type variable `Key`
PyGithub (https://github.com/PyGithub/PyGithub)
- github/RepositoryAdvisory.py:285:92 error[invalid-argument-type] Argument to bound method `AdvisoryVulnerability._validate_vulnerability` is incorrect: Expected `SimpleAdvisoryVulnerability | AdvisoryVulnerability`, found `object`
- github/AdvisoryCredit.py:101:53 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]]`
- github/AdvisoryVulnerability.py:136: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["patched_versions"]` on object of type `Top[dict[Unknown, Unknown]]`
+ github/AdvisoryVulnerability.py:150:17 error[unresolved-attribute] Attribute `package` is not defined on `SimpleAdvisoryVulnerability & dict[Unknown, Unknown] & ~dict[Unknown, Unknown]` in union `(SimpleAdvisoryVulnerability & dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (AdvisoryVulnerability & dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (Self@_validate_vulnerability & ~dict[Unknown, Unknown])`
- github/AdvisoryVulnerability.py:173:33 error[unresolved-attribute] Attribute `patched_versions` is not defined on `SimpleAdvisoryVulnerability & ~Top[dict[Unknown, Unknown]]` in union `(SimpleAdvisoryVulnerability & ~Top[dict[Unknown, Unknown]]) | (AdvisoryVulnerability & ~Top[dict[Unknown, Unknown]])`
+ github/AdvisoryVulnerability.py:173:33 error[unresolved-attribute] Attribute `patched_versions` is not defined on `SimpleAdvisoryVulnerability & ~dict[Unknown, Unknown]` in union `(SimpleAdvisoryVulnerability & ~dict[Unknown, Unknown]) | (AdvisoryVulnerability & ~dict[Unknown, Unknown])`
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/commands/message.py:114:16 error[invalid-return-type] Return type does not match returned value: expected `MessageCommand[_MessageCallbackSigT@decorator]`, found `MessageCommand[_MessageCallbackSigT@MessageCommand]`
alerta (https://github.com/alerta/alerta)
+ alerta/models/heartbeat.py:149:48 error[invalid-return-type] Function can implicitly return `None`, which is not assignable to return type `Heartbeat`
altair (https://github.com/vega/altair)
+ altair/vegalite/v6/api.py:2767:63 warning[unused-ignore-comment] Unused blanket `ty: ignore` directive
antidote (https://github.com/Finistere/antidote)
- src/antidote/core/_injection.py:302:42 error[unresolved-attribute] Object of type `((...) -> object) & ~Top[staticmethod[(...), object]] & ~Top[classmethod[Unknown, (...), object]] & ~MethodType` has no attribute `__name__`
+ src/antidote/core/_injection.py:302:42 error[unresolved-attribute] Attribute `__name__` is not defined on `((...) -> object) & ~staticmethod[(...), Unknown] & ~classmethod[Unknown, (...), Unknown] & ~MethodType` in union `(((...) -> object) & ~staticmethod[(...), Unknown] & ~classmethod[Unknown, (...), Unknown] & ~MethodType) | (classmethod[Unknown, (...), Unknown] & ~classmethod[Unknown, (...), Unknown])`
artigraph (https://github.com/artigraph/artigraph)
- src/arti/internal/type_hints.py:161:41 error[invalid-type-form] Variable of type `type` is not allowed in a type expression
+ src/arti/internal/type_hints.py:161:41 error[invalid-type-form] Variable of type `type[Unknown]` is not allowed in a type expression
beartype (https://github.com/beartype/beartype)
- beartype/_check/convert/_reduce/_pep/pep646/redpep484612646typearg.py:1117:59 error[invalid-type-form] Variable of type `HintPep646692UnpackedType` is not allowed in a type expression
bokeh (https://github.com/bokeh/bokeh)
- src/bokeh/util/datatypes.py:70:13 warning[redundant-cast] Value is already of type `set[V@MultiValuedDict]`
+ src/bokeh/core/property/wrappers.py:565:42 error[not-subscriptable] Cannot subscript object of type `slice[Any, Any, Any]` with no `__getitem__` method
- src/bokeh/plotting/_plot.py:93:32 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:32 error[invalid-argument-type] Argument to `Range1d.__init__` is incorrect: Expected `Value`, found `(Unknown & ~None) | IntrinsicType`
cloud-init (https://github.com/canonical/cloud-init)
- cloudinit/distros/alpine.py:190:19 error[invalid-argument-type] Argument to function `subp` is incorrect: Expected `str | bytes | list[str] | list[bytes]`, found `list[object]`
core (https://github.com/home-assistant/core)
+ homeassistant/components/isy994/sensor.py:284:50 error[invalid-argument-type] Argument to function `convert_isy_value_to_hass` is incorrect: Expected `str | None`, found `(dict[Unknown, Unknown] & ~dict[Unknown, Unknown]) | (str & ~Literal["25"] & ~Literal["2"]) | None`
- homeassistant/components/nibe_heatpump/coordinator.py:42:17 error[invalid-argument-type] Method `__getitem__` of type `bound method defaultdict[_ContextTypeT@ContextCoordinator, list[CALLBACK_TYPE]].__getitem__(key: _ContextTypeT@ContextCoordinator, /) -> list[CALLBACK_TYPE]` cannot be called with key of type `object` on object of type `defaultdict[_ContextTypeT@ContextCoordinator, list[CALLBACK_TYPE]]`
- homeassistant/components/onvif/device.py:440:17 error[unresolved-attribute] Object of type `object` has no attribute `Name`
- homeassistant/components/ring/binary_sensor.py:170:9 error[invalid-assignment] Cannot assign to a subscript on an object of type `Mapping[str, Any]`
- homeassistant/helpers/redact.py:61:33 error[call-non-callable] Object of type `object` is not callable
- homeassistant/helpers/schema_config_entry_flow.py:168:20 error[invalid-return-type] Return type does not match returned value: expected `Container[str]`, found `Container[str] | (((SchemaCommonFlowHandler, /) -> Coroutine[Any, Any, Container[str]]) & Container[Never])`
- homeassistant/helpers/selector.py:1713:25 error[call-non-callable] Object of type `Selector[Unknown] | (dict[str, Any] & Top[Selector[Unknown]])` is not callable
+ homeassistant/helpers/selector.py:1713:25 error[call-non-callable] Object of type `Selector[Unknown]` is not callable
cwltool (https://github.com/common-workflow-language/cwltool)
- cwltool/builder.py:282:21 error[invalid-argument-type] Argument to bound method `Builder.bind_input` is incorrect: Expected `MutableMapping[str, int | str | float | ... omitted 5 union elements]`, found `(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:115: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["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:115: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["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:115: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["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:117: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 `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: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:133: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["type"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/checker.py:133:43 error[invalid-key] Unknown key "type" for TypedDict `CWLDirectoryType` (subscripted object has type `(int & Top[MutableMapping[Unknown, Unknown]]) | (str & Top[MutableMapping[Unknown, Unknown]]) | (float & Top[MutableMapping[Unknown, Unknown]]) | ... omitted 5 union elements`)
- cwltool/command_line_tool.py:465:20 warning[redundant-cast] Value is already of type `str`
- 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/load_tool.py:178:33 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["stdout", "stderr"]` and value of type `str` on object of type `MutableSequence[MutableMapping[str, int | str | float | ... omitted 5 union elements] | str | int]`
- cwltool/load_tool.py:233:13 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/load_tool.py:337:27 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]`
- cwltool/load_tool.py:337: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 `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- cwltool/pack.py:32:26 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: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 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:98:25 error[invalid-assignment] Cannot assign to a subscript on an object of type `float`
- 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:349: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/appsec/_asm_request_context.py:303:32 error[invalid-argument-type] Argument to `Block_config.__init__` is incorrect: Expected `str`, found `Any | str | int | None`
- ddtrace/appsec/ai_guard/_api_client.py:176:44 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 `slice[None, EnvVariable[int], None]` on object of type `str`
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/ext/commands/core.py:1944:13 error[unresolved-attribute] Object of type `((...) -> Coroutine[Any, Any, Any]) & ~Top[Command[Unknown, (...), Unknown]]` has no attribute `__commands_checks__`
+ discord/ext/commands/core.py:1944:13 error[unresolved-attribute] Object of type `((...) -> Coroutine[Any, Any, Any]) & ~Command[Unknown, (...), Unknown]` has no attribute `__commands_checks__`
- discord/ui/view.py:273:30 error[unresolved-attribute] Object of type `((Any, Interaction[Any], Any, /) -> Coroutine[Any, Any, Any]) & ~Item[object]` has no attribute `__discord_ui_model_type__`
+ discord/ui/view.py:273:30 error[unresolved-attribute] Object of type `(((Any, Interaction[Any], Any, /) -> Coroutine[Any, Any, Any]) & ~Item[Unknown]) | (Item[Any] & ~Item[Unknown])` has no attribute `__discord_ui_model_type__`
- discord/utils.py:1106:16 error[invalid-return-type] Return type does not match returned value: expected `Iterable[list[T@as_chunks]] | AsyncIterable[list[T@as_chunks]]`, found `AsyncIterator[list[object]]`
dulwich (https://github.com/dulwich/dulwich)
- dulwich/porcelain/__init__.py:1667:25 error[invalid-argument-type] Argument to constructor `Path.__new__` is incorrect: Expected `str | PathLike[str]`, found `str | (PathLike[str] & ~bytes) | int`
graphql-core (https://github.com/graphql-python/graphql-core)
- src/graphql/execution/incremental_graph.py:316:16 error[unresolved-attribute] Object of type `object` has no attribute `item`
- src/graphql/execution/execute.py:2598:38 error[invalid-argument-type] Argument to `ExecutionResult.__init__` is incorrect: Expected `list[GraphQLError] | None`, found `list[GraphQLError] | (Executor & Top[list[Unknown]])`
- src/graphql/execution/execute.py:2946:38 error[invalid-argument-type] Argument to `ExecutionResult.__init__` is incorrect: Expected `list[GraphQLError] | None`, found `list[GraphQLError] | (Executor & Top[list[Unknown]])`
+ src/graphql/validation/rules/overlapping_fields_can_be_merged.py:53:12 error[invalid-return-type] Return type does not match returned value: expected `str`, found `str | (list[tuple[str, Divergent]] & ~list[Unknown])`
- tests/execution/test_subscribe.py:184:31 error[invalid-argument-type] Argument to `ExecutionResult.__init__` is incorrect: Expected `list[GraphQLError] | None`, found `list[GraphQLError] | (Executor & Top[list[Unknown]])`
hydpy (https://github.com/hydpy-dev/hydpy)
- hydpy/core/parametertools.py:1008:20 error[unsupported-operator] Operator `not in` is not supported between objects of type `tuple[str, T_inv@KeywordArguments]` and `Top[KeywordArguments[Unknown]]`
ibis (https://github.com/ibis-project/ibis)
- ibis/expr/types/arrays.py:149:39 error[invalid-argument-type] Argument is incorrect: Expected `Value[Integer, Any]`, found `int | IntegerValue`
+ ibis/expr/types/arrays.py:149:39 error[invalid-argument-type] Argument is incorrect: Expected `Value[Integer, Any]`, found `int | IntegerValue | (slice[Any, Any, Any] & ~slice[Any, Any, Any])`
- ibis/expr/types/relations.py:3223:28 error[unresolved-attribute] Object of type `Expr` has no attribute `type`
+ ibis/legacy/udf/vectorized.py:98:16 error[invalid-return-type] Return type does not match returned value: expected `Series[Any]`, found `(list[Unknown] & ~list[Unknown] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Series[Any]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~list[Unknown] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Series[Any]) | (Series[Any] & ~list[Unknown] & ~ndarray[tuple[Any, ...], dtype[Any]] & ~Series[Any])`
- ibis/util.py:137:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[V@promote_tuple]`, found `tuple[(V@promote_tuple & ~tuple[object, ...] & ~None) | (Iterable[V@promote_tuple] & ~tuple[object, ...])]`
+ ibis/util.py:137:16 error[invalid-return-type] Return type does not match returned value: expected `tuple[V@promote_tuple]`, found `tuple[(V@promote_tuple & ~tuple[Unknown, ...] & ~None) | (Iterable[V@promote_tuple] & ~tuple[Unknown, ...])]`
ignite (https://github.com/pytorch/ignite)
- tests/ignite/test_utils.py:50:28 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Unknown, (index: slice[int | None, int | None, int | None], /) -> Sequence[Unknown]]` cannot be called with key of type `Literal["b"]` on object of type `Sequence[Unknown]`
jax (https://github.com/google/jax)
- jax/_src/numpy/reductions.py:177:31 error[not-iterable] Object of type `tuple[(int & ~ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int] & ~ndarray[tuple[object, ...], dtype[object]] & ~tuple[object, ...] & ~Top[list[Unknown]])] | (int & ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int] & ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int] & tuple[object, ...]) | (Sequence[int] & Top[list[Unknown]])` may not be iterable
- jax/_src/numpy/reductions.py:801:7 error[invalid-assignment] Object of type `object` is not assignable to `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`
+ jax/_src/lax/slicing.py:3408:8 error[unresolved-attribute] Attribute `ndim` is not defined on `Sequence[Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements] & ~Sequence[Unknown]` in union `(Array & ~Sequence[Unknown]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~Sequence[Unknown]) | (Sequence[Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements] & ~Sequence[Unknown])`
+ jax/_src/numpy/index_tricks.py:87:86 error[not-iterable] Object of type `(slice[Any, Any, Any] & ~slice[Any, Any, Any]) | tuple[slice[Any, Any, Any], ...]` may not be iterable
- jax/_src/numpy/indexing.py:353:37 error[unsupported-operator] Operator `<` is not supported between objects of type `Array | (int & ndarray[tuple[object, ...], dtype[object]]) | (integer[Any] & ndarray[tuple[object, ...], dtype[object]]) | (Sequence[int | integer[Any]] & ndarray[tuple[object, ...], dtype[object]]) | ndarray[tuple[Any, ...], dtype[Any]]` and `Literal[0]`
- jax/_src/random/core.py:317:33 error[invalid-argument-type] Argument to function `random_split` is incorrect: Expected `tuple[int, ...]`, found `tuple[object, ...]`
+ jax/_src/random/core.py:317:33 error[invalid-argument-type] Argument to function `random_split` is incorrect: Expected `tuple[int, ...]`, found `tuple[Unknown, ...] | tuple[(int & ~Sequence[Unknown]) | (tuple[int, ...] & ~Sequence[Unknown])]`
koda-validate (https://github.com/keithasaurus/koda-validate)
- koda_validate/serialization/json_schema.py:334:17 error[invalid-return-type] Return type does not match returned value: expected `dict[str, None | int | str | ... omitted 4 union elements]`, found `dict[str, object]`
- koda_validate/serialization/json_schema.py:349:20 error[unresolved-attribute] Object of type `object` has no attribute `isoformat`
- koda_validate/serialization/json_schema.py:362:17 error[invalid-return-type] Return type does not match returned value: expected `dict[str, None | int | str | ... omitted 4 union elements]`, found `dict[str, object]`
meson (https://github.com/mesonbuild/meson)
- mesonbuild/interpreter/interpreter.py:2890:13 error[unresolved-attribute] Unresolved attribute `used` on type `HoldableObject`
- mesonbuild/interpreterbase/helpers.py:62:59 error[invalid-argument-type] Argument to function `stringifyUserArguments` is incorrect: Expected `Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 5 union elements`, found `object`
- mesonbuild/modules/__init__.py:282:79 error[invalid-assignment] Object of type `Sequence[Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 7 union elements] & Top[list[Unknown]]` is not assignable to `list[Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 7 union elements]`: Incompatible value of type `Sequence[Sequence[Divergent] | int | dict[str, Divergent] | ... omitted 7 union elements] & Top[list[Unknown]]`
- mesonbuild/modules/cmake.py:414:9 error[unresolved-attribute] Unresolved attribute `used` on type `HoldableObject`
mkdocs (https://github.com/mkdocs/mkdocs)
- mkdocs/config/config_options.py:834: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 `Literal["name"]` on object of type `Top[dict[Unknown, Unknown]]`
- mkdocs/config/config_options.py:851:26 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]]`
- mkdocs/config/config_options.py:858:28 error[invalid-argument-type] Argument expression after ** must be a mapping with `str` key type: Found `object`
- mkdocs/config/config_options.py:1034:16 error[invalid-return-type] Return type does not match returned value: expected `list[str]`, found `list[object]`
mypy (https://github.com/python/mypy)
- mypy/strconv.py:688:35 error[invalid-argument-type] Argument to function `dump_tagged` is incorrect: Expected `str | None`, found `object`
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/markers.py:211:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `(list[str] & Any & ~Bottom[list[Unknown]]) | (Sequence[Divergent] & list[Unknown] & ~list[Unknown]) | (tuple[Variable | Value, Op, Variable | Value] & tuple[Unknown, ...] & Any) | (Sequence[Divergent] & tuple[Unknown, ...] & ~tuple[Unknown, ...]) | str`
- src/packaging/tags.py:156:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `object`
- src/packaging/tags.py:163:16 error[invalid-return-type] Return type does not match returned value: expected `str`, found `object`
- src/packaging/tags.py:202:27 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
pandas (https://github.com/pandas-dev/pandas)
- pandas/core/ops/mask_ops.py:59: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/algorithms.py:555:16 error[unresolved-attribute] Attribute `isin` is not defined on `ndarray[tuple[Any, ...], dtype[Any]] & ~ndarray[tuple[Any, ...], dtype[Any]]` in union `(ExtensionArray & ~ndarray[tuple[Any, ...], dtype[Any]]) | (ndarray[tuple[Any, ...], dtype[Any]] & ~ndarray[tuple[Any, ...], dtype[Any]])`
- pandas/core/arrays/interval.py:731:27 error[unresolved-attribute] Object of type `ExtensionArray & ~Top[Interval[Unknown]]` has no attribute `categories`
+ pandas/core/arrays/interval.py:731:27 error[unresolved-attribute] Attribute `categories` is not defined on `ExtensionArray & ~Interval[Unknown]` in union `(Unknown & Interval[Unknown] & ~Interval[Unknown]) | (ExtensionArray & ~Interval[Unknown])`
- pandas/core/arrays/interval.py:739:21 error[unresolved-attribute] Object of type `ExtensionArray & ~Top[Interval[Unknown]]` has no attribute `codes`
+ pandas/core/arrays/interval.py:739:21 error[unresolved-attribute] Attribute `codes` is not defined on `ExtensionArray & ~Interval[Unknown]` in union `(Unknown & Interval[Unknown] & ~Interval[Unknown]) | (ExtensionArray & ~Interval[Unknown])`
+ pandas/core/arrays/masked.py:1102:14 error[unresolved-attribute] Attribute `dtype` is not defined on `tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]] & ~tuple[Unknown, ...]` in union `(ndarray[tuple[Any, ...], dtype[Any]] & ~tuple[Unknown, ...]) | (tuple[ndarray[tuple[Any, ...], dtype[Any]], ndarray[tuple[Any, ...], dtype[Any]]] & ~tuple[Unknown, ...])`
+ pandas/core/arrays/masked.py:2031:20 error[invalid-return-type] Return type does not match returned value: expected `numpy.bool[builtins.bool] | NAType`, found `(numpy.bool[builtins.bool] & ~ndarray[tuple[Any, ...], dtype[Any]]) | (ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] & ~ndarray[tuple[Any, ...], dtype[Any]])`
- 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/groupby/grouper.py:557:50 error[invalid-argument-type] Argument to function `recode_for_groupby` is incorrect: Expected `Categorical`, found `(Unknown & Series & ~Grouper & ~ndarray[tuple[object, ...], dtype[object]]) | (Index & ~ndarray[tuple[object, ...], dtype[object]]) | (Unknown & ExtensionArray & ~Grouper & ~ndarray[tuple[object, ...], dtype[object]]) | (Unknown & BinGrouper & ~ndarray[tuple[object, ...], dtype[object]])`
+ pandas/core/groupby/grouper.py:557:50 error[invalid-argument-type] Argument to function `recode_for_groupby` is incorrect: Expected `Categorical`, found `(Unknown & Series & ~Grouper & ~ndarray[tuple[Any, ...], dtype[Any]]) | (Unknown & Index & ~Grouper & ~ndarray[tuple[Any, ...], dtype[Any]]) | (Unknown & ExtensionArray & ~Grouper & ~ndarray[tuple[Any, ...], dtype[Any]]) | ... omitted 3 union elements`
- pandas/core/groupby/grouper.py:646:46 error[unresolved-attribute] Attribute `codes` is not defined on `Index`, `ndarray[tuple[Any, ...], dtype[Any]]` in union `(Unknown & Series) | Index | (Unknown & ExtensionArray) | ... omitted 4 union elements`
+ pandas/core/groupby/grouper.py:646:46 error[unresolved-attribute] Attribute `codes` is not defined on `Index`, `ndarray[tuple[Any, ...], dtype[Any]]` in union `(Unknown & Series) | Index | (Unknown & ExtensionArray) | ... omitted 3 union elements`
- pandas/core/indexes/base.py:7211:47 error[no-matching-overload] No overload of bound method `ndarray.view` matches arguments
- pandas/io/common.py:273:12 error[no-matching-overload] No overload of function `_expand_user` matches arguments
- pandas/io/excel/_base.py:861:20 error[unsupported-operator] Operator `>` is not supported between objects of type `object` and `int`
- 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/parsers/python_parser.py:1312:44 error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `(Iterator[list[str]] & ~list[Unknown]) | (list[list[str | bytes | date | ... omitted 10 union elements]] & ~list[Unknown])`
- pandas/plotting/_matplotlib/core.py:642:56 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `bool | tuple[Unknown, ...] | ndarray[tuple[Any, ...], dtype[Any]] | list[Unknown]`
+ pandas/plotting/_matplotlib/core.py:642:56 error[invalid-argument-type] Argument to function `len` is incorrect: Expected `Sized`, found `bool | tuple[Unknown, ...] | list[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`
- pandas/tests/extension/date/array.py:106:25 error[unresolved-attribute] Attribute `astype` is not defined on `date` in union `date | ndarray[tuple[Any, ...], dtype[Any]] | Any`
- pandas/tests/frame/test_ufunc.py:49:31 error[invalid-argument-type] Argument is incorrect: Expected `DataFrame`, found `ndarray[tuple[Any, ...], dtype[Any]]`
+ pandas/tests/frame/test_ufunc.py:49:31 error[invalid-argument-type] Argument is incorrect: Expected `DataFrame`, found `ndarray[tuple[Any, ...], dtype[Any]] | Unknown`
pandera (https://github.com/pandera-dev/pandera)
- pandera/io/_minimal.py:196: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/_vendor/packaging/specifiers.py:787:24 error[unresolved-attribute] Object of type `object` has no attribute `get`
- src/pip/_vendor/packaging/specifiers.py:1461:21 error[invalid-assignment] Object of type `tuple[object, ...]` is not assignable to attribute `_specs` of type `tuple[Specifier, ...]`
- src/pip/_vendor/cachecontrol/controller.py:349:12 error[unresolved-attribute] Object of type `~None` has no attribute `status`
- src/pip/_vendor/cachecontrol/controller.py:426:49 error[invalid-argument-type] Argument to bound method `CacheController._cache_set` is incorrect: Expected `HTTPResponse`, found `~None`
- src/pip/_vendor/packaging/version.py:801:21 error[invalid-assignment] Object of type `object` is not assignable to attribute `_pre` of type `tuple[Literal["a", "b", "rc"], int] | None`
- src/pip/_vendor/packaging/version.py:813:29 error[unresolved-attribute] Object of type `~None` has no attribute `pre`
- src/pip/_vendor/requests/utils.py:402:16 error[invalid-return-type] Return type does not match returned value: expected `list[tuple[_KT@to_key_val_list, _VT@to_key_val_list]] | None`, found `list[tuple[object, object]]`
porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/filetypes.py:33:70 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/compatibility/async_dispatch.py:94:20 error[call-non-callable] Object of type `classmethod[type[Any], P@async_dispatch, Coroutine[Any, Any, R@async_dispatch]]` is not callable
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:173:22 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:273:22 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:1043:22 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-databricks/prefect_databricks/jobs.py:1043:22 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/prefect_dbt/cli/commands.py:630:18 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_jobs.py:236:32 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-dbt/tests/cloud/test_jobs.py:236:32 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_runs.py:42:23 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-dbt/tests/cloud/test_runs.py:99:30 error[invalid-await] `object` is not awaitable
- src/integrations/prefect-docker/tests/test_images.py:31:16 error[unresolved-attribute] Attribute `id` is not defined on `list[Unknown]` in union `Unknown | list[Unknown]`
+ src/integrations/prefect-docker/tests/test_images.py:16:23 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py:383:32 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:24:15 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:33:15 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:46:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_custom_objects.py:332:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_deployments.py:34:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_deployments.py:137:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_jobs.py:84:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-kubernetes/tests/test_jobs.py:156:11 error[invalid-await] `object` is not awaitable
+ src/integrations/prefect-kubernetes/tests/test_pods.py:21:15 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-redis/prefect_redis/tasks.py:88:24 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-redis/tests/test_tasks.py:122:11 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
+ src/integrations/prefect-redis/tests/test_tasks.py:123:24 error[invalid-await] `object` is not awaitable
- src/prefect/cache_policies.py:311:25 error[unresolved-attribute] Object of type `(...) -> Any` has no attribute `__code__`
+ src/prefect/cache_policies.py:311:25 error[unresolved-attribute] Object of type `((...) -> Any) | (classmethod[Any, (...), Any] & Top[(...) -> object])` has no attribute `__code__`
- src/prefect/deployments/runner.py:780:13 error[invalid-assignment] Object of type `list[TimeToCompletionSla | LatenessSla | FrequencySla | None]` is not assignable to attribute `_sla` of type `TimeToCompletionSla | LatenessSla | FrequencySla | list[TimeToCompletionSla | LatenessSla | FrequencySla] | None`
+ src/prefect/deployments/runner.py:780:13 error[invalid-assignment] Object of type `list[TimeToCompletionSla | LatenessSla | FrequencySla | (list[TimeToCompletionSla | LatenessSla | FrequencySla] & Any) | None]` is not assignable to attribute `_sla` of type `TimeToCompletionSla | LatenessSla | FrequencySla | list[TimeToCompletionSla | LatenessSla | FrequencySla] | None`
+ src/prefect/flows.py:2103:21 error[call-top-callable] Object of type `Top[(...) -> object]` is not safe to call; its signature is not known
- src/prefect/flows.py:1926:27 error[invalid-await] `R@Flow` is not awaitable
+ src/prefect/flows.py:1926:27 error[invalid-await] `object` is not awaitable
- src/prefect/task_engine.py:609:20 error[invalid-return-type] Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `(R@SyncTaskRunEngine & ~<class 'NotSet'> & ~Top[ResultRecord[Unknown]]) | (type[NotSet] & ~<class 'NotSet'>)`
+ src/prefect/task_engine.py:609:20 error[invalid-return-type] Return type does not match returned value: expected `R@SyncTaskRunEngine | State[Any] | None`, found `(R@SyncTaskRunEngine & ~<class 'NotSet'> & ~ResultRecord[Unknown]) | (type[NotSet] & ~<class 'NotSet'>)`
psycopg (https://github.com/psycopg/psycopg)
- psycopg/psycopg/crdb/connection.py:36:21 error[unresolved-attribute] Attribute `parameter_status` is not defined on `Connection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]`, `AsyncConnection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]` in union `(Connection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]) | (AsyncConnection[Any] & ~Connection[tuple[object, ...]] & ~AsyncConnection[tuple[object, ...]]) | PGconn`
+ psycopg/psycopg/crdb/connection.py:36:21 error[unresolved-attribute] Attribute `parameter_status` is not defined on `Connection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]`, `AsyncConnection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]` in union `(Connection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]) | (AsyncConnection[Any] & ~Connection[tuple[Any, ...]] & ~AsyncConnection[tuple[Any, ...]]) | PGconn`
pwndbg (https://github.com/pwndbg/pwndbg)
- pwndbg/aglib/heap/ptmalloc.py:538:34 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- pwndbg/commands/ptmalloc2.py:467:11 error[unresolved-attribute] Object of type `object` has no attribute `value_to_human_readable`
+ pwndbg/commands/ptmalloc2.py:467:11 error[unresolved-attribute] Attribute `value_to_human_readable` is not defined on `None` in union `Unknown | None`
pydantic (https://github.com/pydantic/pydantic)
+ pydantic/main.py:951:67 error[invalid-argument-type] Argument to function `map_generic_model_arguments` is incorrect: Expected `tuple[Any, ...]`, found `tuple[type[Any], ...] | type[Any]`
pyjwt (https://github.com/jpadilla/pyjwt)
- jwt/jwks_client.py:158:35 error[invalid-argument-type] Argument to function `PyJWKSet.from_dict` is incorrect: Expected `dict[str, Any]`, found `(PyJWKSet & Top[dict[Unknown, Unknown]]) | (Any & Top[dict[Unknown, Unknown]])`
pyproject-metadata (https://github.com/pypa/pyproject-metadata)
- pyproject_metadata/pyproject.py:103:14 error[unresolved-attribute] Object of type `object` has no attribute `get`
- pyproject_metadata/pyproject.py:103:44 error[unresolved-attribute] Object of type `object` has no attribute `get`
pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/python.py:1045:34 error[invalid-argument-type] Argument to function `ascii_escaped` is incorrect: Expected `bytes | str`, found `object`
pytest-autoprofile (https://gitlab.com/TTsangSC/pytest-autoprofile)
- src/pytest_autoprofile/_test_utils.py:503:23 error[invalid-argument-type] Argument to constructor `Path.__new__` is incorrect: Expected `str | PathLike[str]`, found `object`
schema_salad (https://github.com/common-workflow-language/schema_salad)
- src/schema_salad/avro/schema.py:804:44 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["names"]` on object of type `Top[dict[Unknown, Unknown]]`
- src/schema_salad/avro/schema.py:817:66 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["fields"]` on object of type `Top[dict[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/metaschema.py:1047:22 error[invalid-argument-type] Argument to bound method `MutableMapping.pop` is incorrect: Expected `Never`, found `Literal["$schemas"]`
- src/schema_salad/metaschema.py:1047:22 error[invalid-argument-type] Argument to bound method `MutableSequence.pop` is incorrect: Expected `int`, found `Literal["$schemas"]`
- src/schema_salad/ref_resolver.py:397:46 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["mapPredicate"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- src/schema_salad/ref_resolver.py:1161:41 error[invalid-argument-type] Argument to function `relname` is incorrect: Expected `str`, found `object`
- src/schema_salad/ref_resolver.py:1164:29 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `str` on object of type `dict[str, str]`
- src/schema_salad/schema.py:541:17 error[invalid-assignment] Invalid subscript assignment with key of type `Literal["name"]` and value of type `str` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:545:31 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["type"]` on object of type `MutableSequence[Any]`
- src/schema_salad/schema.py:545:31 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:563:17 error[invalid-assignment] Cannot assign to a subscript on an object of type `str`
- 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["fields"]` on object of type `Top[MutableMapping[Unknown, Unknown]]`
- 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/core/output/sanitization.py:31: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 `object` on object of type `Top[dict[Unknown, Unknown]]`
- src/schemathesis/specs/openapi/adapter/servers.py:35:13 error[invalid-assignment] Invalid subscript assignment with key of type `object` and value of type `object` on object of type `dict[str, Any]`
+ src/schemathesis/pytest/lazy.py:87:19 error[invalid-yield] Yield type `(Ok[APIOperation[Unknown, Unknown, Unknown, Unknown]] & ~Ok[Unknown]) | Err[InvalidSchema]` does not match annotated yield type `Ok[tuple[APIOperation[Unknown, Unknown, Unknown, Unknown], (...) -> Unknown]] | Err[InvalidSchema]`
- src/schemathesis/specs/openapi/extra_data_source.py:243:50 error[invalid-argument-type] Argument to function `schema_with_bundle` is incorrect: Expected `dict[str, Any] | bool`, found `Top[dict[Unknown, Unknown]]`
- src/schemathesis/transport/requests.py:386: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 `str` on object of type `Top[dict[Unknown, Unknown]]`
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- sklearn/preprocessing/_polynomial.py:444:16 error[unsupported-operator] Operator `<=` is not supported between objects of type `object` and `Literal[1]`
+ sklearn/preprocessing/tests/test_data.py:250:47 error[unresolved-attribute] Attribute `mean` is not defined on `list[list[Unknown]] & ~list[Unknown]` in union `(ndarray[tuple[int, int], dtype[float64]] & ~list[Unknown]) | (list[list[Unknown]] & ~list[Unknown]) | ndarray[tuple[Any, ...], dtype[Unknown]]`
scipy (https://github.com/scipy/scipy)
- subprojects/highs/highs/highspy/highs.py:881:25 error[unresolved-attribute] Object of type `object` has no attribute `index`
scrapy (https://github.com/scrapy/scrapy)
- scrapy/utils/python.py:269:16 error[invalid-return-type] Return type does not match returned value: expected `Iterable[_KT@without_none_values]`, found `dict[object, object]`
spack (https://github.com/spack/spack)
+ lib/spack/spack/vendor/jinja2/compiler.py:1539:46 error[invalid-argument-type] Argument to bound method `CodeGenerator.writeline` is incorrect: Expected `Node | None`, found `(list[Any] & ~list[Unknown]) | (Expr & ~list[Unknown])`
+ lib/spack/spack/vendor/jinja2/compiler.py:1545:28 error[invalid-argument-type] Argument to bound method `NodeVisitor.visit` is incorrect: Expected `Node`, found `(list[Any] & ~list[Unknown]) | (Expr & ~list[Unknown])`
spark (https://github.com/apache/spark)
- python/pyspark/ml/linalg/__init__.py:698:40 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/linalg/__init__.py:566:45 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 `int` on object of type `ndarray[tuple[object, ...], dtype[object]]`
+ python/pyspark/pandas/series.py:5285:29 error[no-matching-overload] No overload of function `isna` matches arguments
- python/pyspark/sql/classic/table_arg.py:44:20 error[invalid-assignment] Object of type `Column & Top[list[Unknown]]` is not assignable to `tuple[Column | str, ...]`
+ python/pyspark/sql/classic/table_arg.py:44:20 error[invalid-assignment] Object of type `Column & list[Unknown]` is not assignable to `tuple[Column | str, ...]`
- python/pyspark/sql/connect/expressions.py:535:47 error[invalid-argument-type] Argument to bound method `TimestampType.fromInternal` is incorrect: Expected `int`, found `(Any & Top[list[Unknown]]) | (Any & Decimal) | (Any & bytes) | ... omitted 4 union elements`
+ python/pyspark/sql/connect/expressions.py:535:47 error[invalid-argument-type] Argument to bound method `TimestampType.fromInternal` is incorrect: Expected `int`, found `(Any & list[Unknown]) | (Any & Decimal) | (Any & bytes) | ... omitted 4 union elements`
- python/pyspark/sql/connect/readwriter.py:441:30 error[invalid-argument-type] Argument to bound method `DataFrameReader.load` is incorrect: Expected `str | list[str] | None`, found `list[str] | (DataFrame & Top[list[Unknown]])`
- python/pyspark/sql/functions/builtin.py:19001:16 error[invalid-assignment] Object of type `(Column & Top[list[Unknown]]) | (Sequence[Column | str] & Top[list[Unknown]]) | (Column & Top[set[Unknown]]) | (Sequence[Column | str] & Top[set[Unknown]])` is not assignable to `tuple[Column | Sequence[Column | str], ...]`
+ python/pyspark/sql/functions/builtin.py:19001:16 error[invalid-assignment] Object of type `(Column & list[Unknown]) | (Sequence[Column | str] & list[Unknown]) | (Column & set[Unknown]) | (Sequence[Column | str] & set[Unknown])` is not assignable to `tuple[Column | Sequence[Column | str], ...]`
+ python/pyspark/sql/types.py:2446:17 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
+ python/pyspark/sql/types.py:2456:14 error[no-matching-overload] No overload of bound method `Pattern.match` matches arguments
- python/pyspark/testing/sqlutils.py:298:25 error[invalid-argument-type] Method `__delitem__` of type `bound method _Environ[str].__delitem__(key: str) -> None` cannot be called with key of type `object` on object of type `_Environ[str]`
- 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/worker_util.py:275:13 error[invalid-assignment] Object of type `dict[str, str] | (IO[Unknown] & Top[dict[Unknown, Unknown]])` is not assignable to attribute `_conf` of type `dict[str, Any]`
static-frame (https://github.com/static-frame/static-frame)
- static_frame/core/container_util.py:1758:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements], (index: slice[int | None, int | None, int | None], /) -> Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]]` cannot be called with key of type `Top[integer[Any]]` on object of type `Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]`
+ static_frame/core/container_util.py:1758:19 error[invalid-argument-type] Method `__getitem__` of type `Overload[(index: int, /) -> Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements], (index: slice[int | None, int | None, int | None], /) -> Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]]` cannot be called with key of type `integer[Any]` on object of type `Sequence[Sequence[Hashable | int | integer[Any] | ... omitted 10 union elements]]`
- static_frame/core/frame.py:5598:44 error[invalid-argument-type] Argument to bound method `IndexBase._drop_iloc` is incorrect: Expected `int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements`, found `object`
+ static_frame/core/frame.py:10483:19 error[invalid-assignment] Object of type `tuple[int | (integer[Any] & ~tuple[Unknown, ...]) | (ndarray[Any, Any] & ~tuple[Unknown, ...]) | ... omitted 4 union elements, None]` is not assignable to `tuple[int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements, int | integer[Any] | ndarray[Any, Any] | ... omitted 3 union elements]`
- static_frame/core/series.py:1177:25 error[invalid-assignment] Object of type `list[int | integer[Any] | (ndarray[Any, Any] & Top[integer[Any]]) | (list[int] & Top[integer[Any]])]` is not assignable to `ndarray[Any, Any] | list[int] | slice[Any, Any, Any] | None`
+ static_frame/core/series.py:1177:25 error[invalid-assignment] Object of type `list[int | integer[Any]]` is not assignable to `ndarray[Any, Any] | list[int] | slice[Any, Any, Any] | None`
- static_frame/core/type_blocks.py:3564:24 error[invalid-return-type] Return type does not match returned value: expected `None | int | float | ndarray[Any, Any]`, found `object`
- static_frame/test/unit/test_index.py:906:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments
- static_frame/test/unit/test_util.py:1318:26 error[no-matching-overload] No overload of bound method `ndarray.tolist` matches arguments
strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/relay/types.py:851:51 error[invalid-argument-type] Argument to constructor `enumerate.__new__` is incorrect: Expected `Iterable[Unknown]`, found `(AsyncIterable[NodeType@ListConnection] & Any & ~AsyncIterable[Never]) | (AsyncIterator[Unknown] & ~AsyncIterable[Unknown])`
- strawberry/types/fields/resolver.py:419:20 error[invalid-return-type] Return type does not match returned value: expected `(...) -> T@StrawberryResolver`, found `(...) -> object`
sympy (https://github.com/sympy/sympy)
- sympy/printing/pretty/pretty_symbology.py:357:19 error[index-out-of-bounds] Index 3 is out of bounds for tuple `tuple[tuple[Unknown, Unknown, Unknown, Unknown], str]` with length 2
- sympy/printing/pretty/pretty_symbology.py:357:19 error[index-out-of-bounds] Index 3 is out of bounds for tuple `tuple[tuple[Unknown, Unknown, Unknown], str]` with length 2
trio (https://github.com/python-trio/trio)
- src/trio/_core/_run.py:1974:45 error[unresolved-attribute] Object of type `(~None & ~Top[partial[Unknown]] & ~str) | (((...) -> object) & ~str)` has no attribute `__qualname__`
+ src/trio/_core/_run.py:1974:45 error[unresolved-attribute] Object of type `(~None & ~partial[Unknown] & ~str) | (((...) -> Awaitable[object]) & ~partial[Unknown] & ~str) | (((...) -> Unknown) & ~str)` has no attribute `__qualname__`
urllib3 (https://github.com/urllib3/urllib3)
- src/urllib3/_collections.py:357:26 error[invalid-argument-type] Argument to bound method `HTTPHeaderDict.add` is incorrect: Expected `str`, found `object`
vision (https://github.com/pytorch/vision)
+ torchvision/utils.py:76:30 error[unresolved-attribute] Attribute `size` is not defined on `list[Unknown] & ~list[Unknown]` in union `Unknown | (list[Unknown] & ~list[Unknown])`
werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/http.py:372:12 error[no-matching-overload] No overload of bound method `str.join` matches arguments
xarray (https://github.com/pydata/xarray)
- xarray/core/dataarray.py:1503:51 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Resampler | str | int | tuple[int, ...] | None] | None`, found `int | None | (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[object, ...] & ~Top[list[Unknown]])`
+ xarray/core/dataarray.py:1503:51 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Resampler | str | int | tuple[int, ...] | None] | None`, found `int | (tuple[int, ...] & Any & ~tuple[()]) | None | (Mapping[Any, Resampler | str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[Unknown, ...] & ~list[Unknown])`
- xarray/core/dataset.py:4752:41 error[invalid-argument-type] Argument to bound method `list.insert` is incorrect: Expected `SupportsIndex`, found `object`
- xarray/core/utils.py:356:35 error[invalid-argument-type] Argument to function `flat_items` is incorrect: Expected `Mapping[str, dict[str, Divergent] | Unknown]`, found `dict[str, Divergent] | (T@flat_items & Top[dict[Unknown, Unknown]])`
- xarray/core/utils.py:257:34 error[invalid-argument-type] Argument to function `list_equiv` is incorrect: Expected `Sequence[Unknown]`, found `T@equivalent & ~ndarray[tuple[object, ...], dtype[object]]`
+ xarray/core/utils.py:257:34 error[invalid-argument-type] Argument to function `list_equiv` is incorrect: Expected `Sequence[Unknown]`, found `T@equivalent & ~ndarray[tuple[Any, ...], dtype[Any]]`
- xarray/core/variable.py:730:35 error[unresolved-attribute] Attribute `dims` is not defined on `_arrayfunction[Any, Any]`, `_arrayapi[Any, Any]`, `ndarray[tuple[Any, ...], dtype[Unknown]]` in union `(Unknown & Variable & ~Top[integer[Any]]) | _arrayfunction[Any, Any] | _arrayapi[Any, Any] | ndarray[tuple[Any, ...], dtype[Unknown]]`
+ xarray/core/variable.py:730:35 error[unresolved-attribute] Attribute `dims` is not defined on `_arrayfunction[Any, Any]`, `_arrayapi[Any, Any]`, `ndarray[tuple[Any, ...], dtype[Unknown]]` in union `(Unknown & Variable & ~integer[Any]) | _arrayfunction[Any, Any] | _arrayapi[Any, Any] | ndarray[tuple[Any, ...], dtype[Unknown]]`
- xarray/core/variable.py:755:35 error[invalid-argument-type] Argument to `OuterIndexer.__init__` is incorrect: Expected `tuple[int | integer[Any] | slice[Any, Any, Any] | ndarray[Any, dtype[generic[Any]]], ...]`, found `tuple[(Unknown & int) | (Unknown & Top[integer[Any]]) | (Unknown & slice[object, object, object]) | ... omitted 5 union elements, ...]`
+ xarray/core/variable.py:755:35 error[invalid-argument-type] Argument to `OuterIndexer.__init__` is incorrect: Expected `tuple[int | integer[Any] | slice[Any, Any, Any] | ndarray[Any, dtype[generic[Any]]], ...]`, found `tuple[(Unknown & int) | (Unknown & integer[Any]) | (Unknown & slice[Any, Any, Any]) | ... omitted 5 union elements, ...]`
+ xarray/groupers.py:323:28 error[unresolved-attribute] Attribute `variable` is not defined on `_DummyGroup[Unknown] & ~_DummyGroup[Unknown]` in union `(Unknown & ~_DummyGroup[Unknown]) | (_DummyGroup[Unknown] & ~_DummyGroup[Unknown])`
+ xarray/groupers.py:451:55 error[unresolved-attribute] Attribute `dtype` is not defined on `_DummyGroup[Unknown] & ~_DummyGroup[Unknown]` in union `(Unknown & ~_DummyGroup[Unknown]) | (_DummyGroup[Unknown] & ~_DummyGroup[Unknown]) | DataArray`
- xarray/namedarray/core.py:818:44 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Any] | None`, found `int | (Mapping[Any, str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[object, ...] & ~Top[list[Unknown]]) | dict[Any, Unknown]`
+ xarray/namedarray/core.py:818:44 error[invalid-argument-type] Argument to function `either_dict_or_kwargs` is incorrect: Expected `Mapping[Any, Any] | None`, found `int | (tuple[int, ...] & Any & ~tuple[()]) | (Mapping[Any, str | int | tuple[int, ...] | None] & ~float & ~str & ~tuple[Unknown, ...] & ~list[Unknown]) | dict[Any, Unknown]`
xarray-dataclasses (https://github.com/astropenguin/xarray-dataclasses)
- xarray_dataclasses/dataarray.py:187: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 `str` on object of type `Top[dict[Unknown, Unknown]]`
zulip (https://github.com/zulip/zulip)
- scripts/lib/supervisor.py:52:42 error[not-subscriptable] Cannot subscript object of type `object` with no `__getitem__` method
- zerver/lib/event_schema.py:442:16 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/validator.py:443:18 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["extra_data"]` on object of type `Top[dict[Unknown, Unknown]]`
- zerver/lib/validator.py:547: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/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]]`9cc03e4 to
28eb49f
Compare
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.
Summary
Test Plan