Repository navigation
[ty] Reject runtime generic aliases where class objects are required - #29398
charliermarsh wants to merge 1 commit into
Conversation
Typing conformance resultsThe percentage of diagnostics emitted that were expected errors held steady at 98.24%. The percentage of expected errors that received a diagnostic held steady at 98.24%. The number of fully passing files held steady at 134/146. SummaryHow are test cases classified?Each test case represents one expected error annotation or a group of annotations sharing a tag. Counts are per test case, not per diagnostic — multiple diagnostics on the same line count as one. Required annotations (
True positives changed (1)1 diagnostic
|
Memory usage reportSummary
Significant changesClick to expand detailed breakdowntrio
flake8
sphinx
prefect
|
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
invalid-argument-type |
675 | 0 | 0 |
invalid-type-form |
0 | 0 | 68 |
invalid-assignment |
11 | 0 | 0 |
unsound-return-statement |
11 | 0 | 0 |
no-matching-overload |
10 | 0 | 0 |
unsound-assignment |
6 | 0 | 1 |
invalid-return-type |
3 | 3 | 0 |
unresolved-attribute |
0 | 4 | 0 |
redundant-cast |
0 | 2 | 0 |
type-assertion-failure |
2 | 0 | 0 |
unused-type-ignore-comment |
2 | 0 | 0 |
disjoint-cast |
1 | 0 | 0 |
invalid-base |
1 | 0 | 0 |
invalid-parameter-default |
1 | 0 | 0 |
truthiness-test-of-none-union |
0 | 0 | 1 |
unsupported-base |
0 | 1 | 0 |
unused-ignore-comment |
1 | 0 | 0 |
| Total | 724 | 10 | 70 |
Showing a random sample of 309 of 804 changes. See the HTML report for the full diff.
Raw diff sample (309 of 804 changes)
Expression (https://github.com/cognitedata/Expression)
+ tests/test_typing.py:93:22 error[invalid-argument-type] Argument to function `try_downcast` is incorrect: Expected `type[Unknown]`, found `<class 'list[Any]'>`
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ tanjun/_internal/cache.py:76:56 error[invalid-argument-type] Argument to bound method `Client.get_type_dependency` is incorrect: Expected `type[Unknown]`, found `<class 'AsyncCache[int, GuildThreadChannel]'>`
+ tanjun/_internal/cache.py:105:20 warning[unsound-return-statement] Unsound return statement: `Unknown & ~AlwaysFalsy` is not a subtype of `PermissibleGuildChannel`
+ tanjun/clients.py:2377:56 error[invalid-argument-type] Argument to bound method `Client.get_type_dependency` is incorrect: Expected `type[Unknown]`, found `<class 'SingleStoreCache[OwnUser]'>`
+ tanjun/clients.py:2433:24 warning[unsound-return-statement] Unsound return statement: `Unknown` is not a subtype of `Snowflake`
+ tanjun/dependencies/limiters.py:448:24 warning[unsound-return-statement] Unsound return statement: `(Unknown & ~AlwaysFalsy) | Snowflake` is not a subtype of `Snowflake`
+ tanjun/dependencies/limiters.py:453:27 warning[unsound-assignment] Unsound assignment: `Unknown` is not a subtype of `PartialChannel | None`
+ tanjun/permissions.py:235:21 warning[unsound-assignment] Unsound assignment: `dict[Snowflake, Unknown]` is not a subtype of `Mapping[Snowflake, Role] | None`
aiohttp-devtools (https://github.com/aio-libs/aiohttp-devtools)
+ aiohttp_devtools/runserver/serve.py:42:23 error[invalid-argument-type] Argument to `BaseKey.__init__` is incorrect: Expected `type[Unknown] | None`, found `<class 'set[tuple[WebSocketResponse[Literal[True]], str]]'>`
antidote (https://github.com/Finistere/antidote)
+ tests/lib/interface/test_custom.py:300:11 warning[disjoint-cast] Cast from `<class 'EventSubscriber[InitializationEvent]'>` to disjoint type `type[EventSubscriber[InitializationEvent]]`
artigraph (https://github.com/artigraph/artigraph)
+ tests/arti/internal/test_dispatch.py:110:23 error[invalid-argument-type] Argument to bound method `_multipledispatch.lookup` is incorrect: Expected `type[Any] | None`, found `<class 'list[int]'>`
+ tests/arti/internal/test_type_hints.py:45:32 error[invalid-argument-type] Argument to function `get_class_type_vars` is incorrect: Expected `type`, found `<class 'Base[int, int]'>`
beartype (https://github.com/beartype/beartype)
+ beartype/_data/cls/pep/pep544/io/dataclspep544io.py:473:60 error[invalid-assignment] Object of type `dict[type | <class 'IO[Any]'> | <class 'IO[bytes]'> | <class 'IO[str]'>, Any]` is not assignable to `dict[type, Any]`
core (https://github.com/home-assistant/core)
+ homeassistant/components/traccar_server/coordinator.py:111:42 error[invalid-argument-type] Argument to function `isinstance` is incorrect: Expected `_ClassInfo`, found `<class 'list[Unknown]'>`
cryptography (https://github.com/pyca/cryptography)
+ tests/hazmat/asn1/test_serialization.py:1166:13 error[invalid-argument-type] Argument to function `decode_der` is incorrect: Expected `type[Unknown]`, found `<class 'list[int]'>`
+ tests/hazmat/asn1/test_serialization.py:1183:29 error[invalid-argument-type] Argument to function `decode_der` is incorrect: Expected `type[Unknown]`, found `<class 'list[float]'>`
+ tests/hazmat/asn1/test_serialization.py:1215:32 error[invalid-argument-type] Argument to function `decode_der` is incorrect: Expected `type[Unknown]`, found `<class 'SetOf[int]'>`
+ tests/hazmat/asn1/test_api.py:399:29 error[invalid-argument-type] Argument to function `decode_der` is incorrect: Expected `type[Unknown]`, found `<class 'list[Any]'>`
egglog-python (https://github.com/egraphs-good/egglog-python)
+ python/egglog/exp/array_api.py:856:11 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[Vec[Int] | tuple[Int | i64 | int, ...] | list[Int | i64 | int]]`, found `<class 'Vec[Int]'>`
+ python/egglog/exp/array_api.py:975:11 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[Vec[TupleInt] | tuple[TupleInt | Vec[Int] | tuple[Int | i64 | int, ...] | list[Int | i64 | int], ...] | list[TupleInt | Vec[Int] | tuple[Int | i64 | int, ...] | list[Int | i64 | int]]]`, found `<class 'Vec[TupleInt]'>`
+ python/egglog/exp/array_api.py:1389:11 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[Vec[Value] | tuple[Value | Int | i64 | ... omitted 4 union elements, ...] | list[Value | Int | i64 | ... omitted 4 union elements]]`, found `<class 'Vec[Value]'>`
+ python/egglog/exp/array_api.py:1609:11 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[UnspecializedTypeVar]`, found `<class 'Vec[RecursiveValue]'>`
+ python/egglog/exp/array_api.py:2048:11 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[Vec[NDArray] | tuple[NDArray | RecursiveValueLike, ...] | list[NDArray | RecursiveValueLike]]`, found `<class 'Vec[NDArray]'>`
+ python/egglog/exp/param_eq/domain.py:119:11 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[Map[Map[Num, BigRat], f64] | dict[ContainerMonomialLike, f64 | float]]`, found `<class 'Map[Map[Num, BigRat], f64]'>`
+ python/egglog/exp/param_eq/domain.py:298:63 error[invalid-argument-type] Argument to function `_is_expr_instance` is incorrect: Expected `type[Unknown]`, found `<class 'Map[Map[Num, BigRat], f64]'>`
+ python/egglog/exp/param_eq/domain.py:326:63 error[invalid-argument-type] Argument to function `_is_expr_instance` is incorrect: Expected `type[Unknown]`, found `<class 'Map[Map[Num, BigRat], f64]'>`
+ python/egglog/exp/param_eq/domain.py:411:29 error[invalid-argument-type] Argument to function `_is_expr_instance` is incorrect: Expected `type[Unknown]`, found `<class 'Map[Num, BigRat]'>`
+ python/egglog/exp/param_eq/domain.py:423:16 error[invalid-argument-type] Argument to `Num.__init__` is incorrect: Expected `f64 | float`, found `(Map[Num, BigRat] & ~Num) | (Map[Map[Num, BigRat], f64] & ~Num) | (f64 & ~Num)`
+ python/egglog/exp/param_eq/domain.py:669:41 error[invalid-argument-type] Argument to function `_decoded_polynomial_cost` is incorrect: Expected `Map[Map[Num, BigRat], f64]`, found `BaseExpr`
+ python/egglog/exp/param_eq/domain.py:670:32 error[invalid-argument-type] Argument to function `_is_expr_instance` is incorrect: Expected `type[Unknown]`, found `<class 'Map[Num, BigRat]'>`
+ python/egglog/exp/param_eq/domain.py:671:39 error[invalid-argument-type] Argument to function `_decoded_monomial_cost` is incorrect: Expected `Map[Num, BigRat]`, found `BaseExpr`
+ python/tests/test_convert.py:99:35 error[invalid-argument-type] Argument to function `convert` is incorrect: Expected `type[Unknown]`, found `<class 'G[i64]'>`
+ python/tests/test_convert.py:105:23 error[invalid-argument-type] Argument to function `convert` is incorrect: Expected `type[Unknown]`, found `<class 'G[i64]'>`
+ python/tests/test_convert.py:141:15 error[invalid-argument-type] Argument to function `converter` is incorrect: Expected `type[UnspecializedTypeVar]`, found `<class 'B[C]'>`
hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/core/optiontools.py:636:16 error[invalid-assignment] Object of type `<class 'OptionContextStr[Literal["none", "mean"]]'>` is not assignable to `type[OptionContextStr[Literal["none", "mean"]]]`
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
+ src/hydra_zen/structured_configs/_implementations.py:3703:5 error[invalid-parameter-default] Default value of type `<class 'BuildsFn[Any]'>` is not assignable to annotated parameter type `type[BuildsFn[Any]]`
+ tests/annotations/declarations.py:1401:10 error[no-matching-overload] No overload of function `make_custom_builds_fn` matches arguments
+ tests/annotations/declarations.py:1408:10 error[no-matching-overload] No overload of function `make_custom_builds_fn` matches arguments
ibis (https://github.com/ibis-project/ibis)
+ ibis/common/tests/test_grounds.py:358:37 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'Map[Unknown]'>`
+ ibis/common/tests/test_patterns.py:754:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'tuple[str, int, float]'>`
+ ibis/common/tests/test_patterns.py:1226:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'tuple[PlusOne, ...]'>`
+ ibis/common/tests/test_patterns.py:1230:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'DoubledList[PlusOne]'>`
- ibis/common/tests/test_typing.py:129:12 error[unresolved-attribute] Class `Test[int, float]` has no attribute `__parameters__`
- ibis/common/tests/test_typing.py:130:12 error[unresolved-attribute] Class `Test[int, float]` has no attribute `__args__`
+ ibis/expr/datatypes/tests/test_core.py:703:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'Array[Integer]'>`
+ ibis/expr/datatypes/tests/test_core.py:711:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'Map[String, Integer]'>`
+ ibis/tests/expr/test_window_frames.py:40:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'WindowBoundary[Integer, Any]'>`
+ ibis/tests/expr/test_window_frames.py:53:31 error[invalid-argument-type] Argument to bound method `Pattern.from_typehint` is incorrect: Expected `type`, found `<class 'WindowBoundary[Integer, Any]'>`
mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ test/mitmproxy/test_types.py:194:51 error[invalid-argument-type] Argument to bound method `_StrSeqType.completion` is incorrect: Expected `type`, found `<class 'Sequence[str]'>`
+ test/mitmproxy/test_types.py:246:55 error[invalid-argument-type] Argument to bound method `_BaseFlowType.completion` is incorrect: Expected `type`, found `<class 'Sequence[Flow]'>`
+ test/mitmproxy/test_types.py:255:50 error[invalid-argument-type] Argument to bound method `_FlowsType.parse` is incorrect: Expected `type`, found `<class 'Sequence[Flow]'>`
+ test/mitmproxy/test_types.py:256:50 error[invalid-argument-type] Argument to bound method `_FlowsType.parse` is incorrect: Expected `type`, found `<class 'Sequence[Flow]'>`
+ test/mitmproxy/test_types.py:257:50 error[invalid-argument-type] Argument to bound method `_FlowsType.parse` is incorrect: Expected `type`, found `<class 'Sequence[Flow]'>`
+ test/mitmproxy/test_types.py:258:50 error[invalid-argument-type] Argument to bound method `_FlowsType.parse` is incorrect: Expected `type`, found `<class 'Sequence[Flow]'>`
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
+ pymongo/synchronous/encryption.py:111:5 error[invalid-argument-type] Argument to constructor `CodecOptions.__new__` is incorrect: Expected `type[dict[str, Any]] | None`, found `<class 'dict[str, Any]'>`
pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/arrays/test_extension_array.py:45:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/arrays/test_interval.py:326:49 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/arrays/test_interval.py:342:49 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/arrays/test_period.py:93:60 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/arrays/test_period.py:158:58 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/arrays/test_period.py:180:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/arrays/test_period.py:202:59 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/arrays/test_period.py:217:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/arrays/test_period.py:260:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/arrays/test_sparse.py:126:51 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/arrays/test_sparse.py:200:52 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/arrays/test_sparse.py:264:53 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/arrays/test_sparse.py:266:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/arrays/test_timedeltas.py:190:50 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/arrays/test_timedeltas.py:199:51 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/arrays/test_timedeltas.py:217:50 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_32Bit]]]'>`
+ tests/arrays/test_timedeltas.py:235:50 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_32Bit]]]'>`
+ tests/arrays/test_timedeltas.py:511:47 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/frame/test_frame.py:2170:51 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[GenericT]]'>`
+ tests/frame/test_frame.py:2181:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[GenericT]]'>`
+ tests/indexes/test_datetime_index.py:43:51 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_datetime_index.py:45:51 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_rangeindex.py:29:48 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'list[int]'>`
+ tests/test_extension.py:53:73 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_extension.py:56:73 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_pandas.py:511:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_pandas.py:515:58 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_pandas.py:516:59 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_pandas.py:520:57 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_pandas.py:614:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:710:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[unsignedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:773:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:777:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:782:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:951:45 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:958:49 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:962:49 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:966:49 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:972:49 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:1023:45 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/test_pandas.py:1024:46 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:1026:46 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:1057:46 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:1135:46 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:1152:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:1155:46 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_pandas.py:1158:46 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_string_accessors.py:128:39 error[invalid-argument-type] Argument to class `partial` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_timefuncs.py:293:53 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_timefuncs.py:294:53 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_timefuncs.py:295:54 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_timefuncs.py:589:13 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:690:52 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:691:52 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:734:58 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_timefuncs.py:738:57 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/test_timefuncs.py:1073:56 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1092:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:1097:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:1102:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:1134:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1139:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1151:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1174:65 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1203:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/test_timefuncs.py:1220:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1225:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1234:76 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_timefuncs.py:1253:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/indexes/test_indexes.py:76:59 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:77:70 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:80:60 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:96:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:119:13 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:121:54 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:122:66 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:128:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/indexes/test_indexes.py:374:52 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/indexes/test_indexes.py:380:70 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:383:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/indexes/test_indexes.py:388:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_32Bit]]]'>`
+ tests/indexes/test_indexes.py:1500:73 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:1503:72 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:1740:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:1749:50 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:1756:50 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:1763:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[signedinteger[_64Bit]]]'>`
+ tests/indexes/test_indexes.py:1791:55 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/scalars/test_scalars.py:343:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:352:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:365:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:650:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[GenericT]]'>`
+ tests/scalars/test_scalars.py:656:62 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[GenericT]]'>`
+ tests/scalars/test_scalars.py:839:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:846:60 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:855:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:860:65 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:875:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:881:68 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:883:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:884:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:887:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:895:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:898:68 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:903:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:904:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:936:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:939:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:947:56 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1267:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1268:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1274:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1282:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1284:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1285:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1288:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1291:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1295:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1296:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1299:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1300:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1304:68 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1307:68 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1319:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1334:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1335:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1339:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1343:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1346:68 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1354:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1391:68 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1396:56 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1398:56 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1401:56 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1402:56 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1820:58 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1823:58 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1824:59 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1828:58 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1829:59 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1842:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1854:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1856:66 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1859:62 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1870:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1874:62 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1880:62 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1881:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1884:62 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1885:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1898:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1907:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1908:67 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int, int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1910:63 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/scalars/test_scalars.py:1916:55 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[ShapeT, dtype[numpy.bool[builtins.bool]]]'>`
+ tests/series/test_series.py:1565:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2179:70 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2184:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/series/test_series.py:2188:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/series/test_series.py:2220:60 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]'>`
+ tests/series/test_series.py:2248:64 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2261:61 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2275:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2323:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2343:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2348:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2353:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2358:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2363:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2373:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2422:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2447:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2462:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2479:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2484:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2489:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2494:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2499:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2504:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2514:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2524:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2536:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2541:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2548:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2553:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2568:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2573:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2585:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2600:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2607:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2612:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2617:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2638:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/series/test_series.py:2646:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/series/test_series.py:2650:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/series/test_series.py:2665:13 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[object_]]'>`
+ tests/series/test_series.py:2758:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2774:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2783:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2809:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2818:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2829:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2857:9 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/series/test_series.py:2907:13 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ndarray[tuple[int], dtype[GenericT]]'>`
+ tests/test_io.py:1382:13 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ExcelWriter[Unknown]'>`
+ tests/test_io.py:1405:13 error[invalid-argument-type] Argument to function `check` is incorrect: Expected `type`, found `<class 'ExcelWriter[Unknown]'>`
prefect (https://github.com/PrefectHQ/prefect)
+ src/prefect/client/orchestration/__init__.py:961:34 error[invalid-argument-type] Argument to function `_get_type_adapter` is incorrect: Expected `type`, found `<class 'list[TaskRun]'>`
+ src/prefect/client/orchestration/__init__.py:1700:34 error[invalid-argument-type] Argument to function `_get_type_adapter` is incorrect: Expected `type`, found `<class 'list[TaskRun]'>`
pytest (https://github.com/pytest-dev/pytest)
+ testing/code/test_excinfo.py:507:24 error[invalid-argument-type] Argument to function `raises` is incorrect: Expected `type[BaseException] | tuple[type[BaseException], ...]`, found `<class 'BaseExceptionGroup[BaseException]'>`
+ testing/code/test_excinfo.py:514:23 error[invalid-argument-type] Argument to function `raises` is incorrect: Expected `type[BaseException] | tuple[type[BaseException], ...]`, found `<class 'ExceptionGroup[RuntimeError]'>`
+ testing/python/raises_group.py:1312:24 error[invalid-argument-type] Argument to `RaisesExc.__init__` is incorrect: Expected `type[BaseException] | tuple[type[BaseException], ...]`, found `<class 'BaseExceptionGroup[KeyboardInterrupt]'>`
+ testing/python/raises_group.py:1315:10 error[no-matching-overload] No overload of `RaisesGroup.__init__` matches arguments
+ testing/python/raises_group.py:1319:20 error[invalid-argument-type] Argument to `RaisesExc.__init__` is incorrect: Expected `type[BaseException] | tuple[type[BaseException], ...]`, found `<class 'BaseExceptionGroup[BaseException]'>`
+ testing/python/raises_group.py:1324:9 error[no-matching-overload] No overload of `RaisesGroup.__init__` matches arguments
scipy (https://github.com/scipy/scipy)
+ subprojects/highs/highs/highspy/highs.py:1542:20 error[invalid-base] Invalid class base with type `<class 'ndarray[Any, dtype[object_]]'> | <class 'ndarray'>`
spark (https://github.com/apache/spark)
+ python/pyspark/eval_handlers/_arrow.py:183:53 error[invalid-argument-type] Argument to function `verify_return_type` is incorrect: Expected `type[Any]`, found `<class 'Iterator[Unknown]'>`
+ python/pyspark/eval_handlers/_arrow.py:716:60 error[invalid-argument-type] Argument to function `verify_return_type` is incorrect: Expected `type[Any]`, found `<class 'Iterator[Unknown]'>`
+ python/pyspark/pandas/tests/test_typedef.py:415:38 error[invalid-argument-type] Argument to function `pandas_on_spark_type` is incorrect: Expected `str | type | dtype[Any] | ExtensionDtype`, found `<class 'ndarray[tuple[Any, ...], dtype[Unknown]]'>`
strawberry (https://github.com/strawberry-graphql/strawberry)
+ strawberry/http/async_base_view.py:114:9 error[invalid-assignment] Object of type `<class 'BaseGraphQLTransportWSHandler[Context@AsyncBaseHTTPView, RootValue@AsyncBaseHTTPView]'>` is not assignable to `type[BaseGraphQLTransportWSHandler[Context@AsyncBaseHTTPView, RootValue@AsyncBaseHTTPView]]`
typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)
+ src/typeshed_stats/serialize.py:176:40 error[invalid-argument-type] Argument to bound method `BaseConverter.structure` is incorrect: Expected `type[Unknown]`, found `<class 'list[PackageInfo | FileInfo]'>`
+ src/typeshed_stats/serialize.py:176:117 error[unused-ignore-comment] Unused `ty: ignore` directive
xarray (https://github.com/pydata/xarray)
- xarray/core/accessor_str.py:584:16 error[invalid-return-type] Return type does not match returned value: expected `T_DataArray@StringAccessor`, found `Unknown | DataArray`
+ xarray/core/accessor_str.py:1515:24 warning[unsound-return-statement] Unsound return statement: `Unknown` is not a subtype of `T_DataArray@StringAccessor`
+ xarray/core/accessor_str.py:1519:24 warning[unsound-return-statement] Unsound return statement: `Unknown` is not a subtype of `T_DataArray@StringAccessor`
- xarray/core/dataarray.py:1541:22 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:1541:22 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:1739:17 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:1739:17 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:2563:25 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:2563:25 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:3002:22 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:3002:22 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:3315:16 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:3315:16 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:3315:60 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:3315:60 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:3696:32 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:3696:32 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:3700:15 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:3700:15 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4215:16 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4215:16 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4217:45 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4217:45 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4228:15 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4228:15 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4248:16 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4248:16 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4265:16 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4265:16 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4279:16 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4279:16 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4281:45 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4281:45 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4419:36 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4419:36 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4437:25 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4437:25 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4440:31 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4440:31 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4462:41 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4462:41 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:4816:52 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:4816:52 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6143:14 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6143:14 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6284:14 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6284:14 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6425:14 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6425:14 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6745:17 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6745:17 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6745:44 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6745:44 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6749:21 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6749:21 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6997:19 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6997:19 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:6998:14 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:6998:14 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:7581:51 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:7581:51 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
- xarray/core/dataarray.py:7729:53 error[invalid-type-form] Variable of type `UncachedAccessor[StringAccessor[DataArray]]` is not allowed in a parameter annotation
+ xarray/core/dataarray.py:7729:53 error[invalid-type-form] Variable of type `UncachedAccessor[Unknown]` is not allowed in a parameter annotation
Merging this PR will improve performance by 4.25%
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
e9e87e1 to
9e44d3f
Compare
9e44d3f to
a263d21
Compare
Summary
We now reject runtime generic aliases where Python requires a class object:
We distinguish an alias such as
list[int]from a class object that carries specialization information. This also correctsissubclassandsingledispatch.registerwhile preserving valid alias uses in annotations, constructors, and base classes. NumPy scalar names whose stubs describe them as aliases remain class objects and retain the type arguments that distinguish scalar widths. Specialized-class narrowing remains unchanged.The conformance suite pin incorporates python/typing#2368, which removes a fixture that passed an alias where a class was expected.
Depends on #29403.
Closes astral-sh/ty#116.