Skip to content

[ty] Reject runtime generic aliases where class objects are required - #29398

Closed
charliermarsh wants to merge 1 commit into
charlie/ty-class-specialization-representationfrom
charlie/ty-generic-classinfo-diagnostic
Closed

charliermarsh wants to merge 1 commit into
charlie/ty-class-specialization-representationfrom
charlie/ty-generic-classinfo-diagnostic

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

We now reject runtime generic aliases where Python requires a class object:

def requires_class(cls: type) -> None: ...

requires_class(list)       # Accepted.
requires_class(list[int])  # Invalid argument.
isinstance([], list[int])  # Invalid argument.

We distinguish an alias such as list[int] from a class object that carries specialization information. This also corrects issubclass and singledispatch.register while 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.

@charliermarsh charliermarsh added ty The ty type checker diagnostics Diagnostic messages, annotations, suggested fixes, and rendering infrastructure labels Oct 14, 2026
@astral-sh-bot

astral-sh-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Typing conformance results

The 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.

Summary

How 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 (E) are true positives when ty flags the expected location and false negatives when it does not. Optional annotations (E?) are true positives when flagged but true negatives (not false negatives) when not. Tagged annotations (E[tag]) require ty to flag exactly one of the tagged lines; tagged multi-annotations (E[tag+]) allow any number up to the tag count. Flagging unexpected locations counts as a false positive.

Metric Old New Diff Outcome
True Positives 1116 1116 +0
False Positives 20 20 +0
False Negatives 20 20 +0
Total Diagnostics 1180 1181 +1 ⏫
Precision 98.24% 98.24% +0.00%
Recall 98.24% 98.24% +0.00%
Passing Files 134/146 134/146 +0

True positives changed (1)

1 diagnostic
Test case Diff

generics_syntax_scoping.py:35

-error[unresolved-reference] Name `T` used when not defined
+error[invalid-argument-type] Argument to function `decorator1` is incorrect: Expected `type[Foo[Unknown]]`, found `<class 'Foo[Unknown]'>`
+error[unresolved-reference] Name `T` used when not defined

@astral-sh-bot

astral-sh-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Memory usage report

Summary

Project Old New Diff Outcome
trio 92.53MB 92.53MB +0.00% (704.00B) ⏫
flake8 37.93MB 37.93MB +0.00% (16.00B) ⏫
sphinx 172.21MB 172.21MB -0.00% (2.09kB) ⬇️
prefect 475.41MB 475.38MB -0.01% (31.16kB) ⬇️

Significant changes

Click to expand detailed breakdown

trio

Name Old New Diff Outcome
MemberLookupKey 1.12MB 1.12MB +0.03% (312.00B) ⏫
member_lookup_with_policy_inner 1.23MB 1.23MB +0.02% (256.00B) ⏫
ResolverFile 12.38kB 12.45kB +0.57% (72.00B) ⏫
file_to_module 9.60kB 9.66kB +0.57% (56.00B) ⏫
infer_definition_types 4.70MB 4.70MB -0.00% (16.00B) ⬇️
place_by_id 676.91kB 676.93kB +0.00% (16.00B) ⏫
Type<'db>::class_member_with_policy_inner_ 1.38MB 1.38MB +0.00% (16.00B) ⏫
infer_scope_types_impl 2.86MB 2.86MB -0.00% (8.00B) ⬇️

flake8

Name Old New Diff Outcome
infer_definition_types 1.17MB 1.17MB +0.00% (16.00B) ⏫

sphinx

Name Old New Diff Outcome
when_constraint_set_assignable_to_owned_impl 925.91kB 925.05kB -0.09% (888.00B) ⬇️
TypePair 2.67MB 2.67MB -0.02% (576.00B) ⬇️
IntersectionType 548.87kB 548.54kB -0.06% (336.00B) ⬇️
Type<'db>::apply_specialization_inner_::interned_arguments 1.16MB 1.16MB -0.03% (320.00B) ⬇️
FunctionType<'db>::literal_signature_ 1.08MB 1.08MB +0.03% (288.00B) ⏫
Specialization 1.59MB 1.59MB -0.01% (224.00B) ⬇️
infer_deferred_types 2.05MB 2.05MB +0.01% (216.00B) ⏫
is_redundant_with_impl 641.77kB 641.56kB -0.03% (216.00B) ⬇️
Type<'db>::apply_specialization_inner_ 776.19kB 776.02kB -0.02% (176.00B) ⬇️
try_metaclass_inner 184.93kB 184.76kB -0.09% (176.00B) ⬇️
place_by_id 1.26MB 1.26MB +0.01% (160.00B) ⏫
place_by_id::interned_arguments 988.17kB 988.31kB +0.01% (144.00B) ⏫
infer_implicit_alias_type 25.72kB 25.59kB -0.49% (128.00B) ⬇️
UnionType 608.50kB 608.39kB -0.02% (112.00B) ⬇️
infer_scope_types_impl 6.27MB 6.27MB -0.00% (104.00B) ⬇️
... 12 more

prefect

Name Old New Diff Outcome
when_constraint_set_assignable_to_owned_impl 3.58MB 3.57MB -0.28% (10.43kB) ⬇️
check_file_impl 5.53MB 5.53MB +0.14% (7.70kB) ⏫
TypePair 8.99MB 8.98MB -0.08% (7.12kB) ⬇️
IntersectionType 1.36MB 1.36MB -0.31% (4.27kB) ⬇️
infer_deferred_types 4.82MB 4.81MB -0.08% (4.09kB) ⬇️
Type<'db>::apply_specialization_inner_::interned_arguments 4.12MB 4.12MB -0.09% (3.98kB) ⬇️
UnionType 1.41MB 1.41MB -0.20% (2.84kB) ⬇️
Specialization 4.88MB 4.88MB -0.05% (2.62kB) ⬇️
is_redundant_with_impl 3.07MB 3.07MB -0.08% (2.62kB) ⬇️
Type<'db>::apply_specialization_inner_ 2.96MB 2.96MB -0.09% (2.59kB) ⬇️
infer_scope_types_impl 19.81MB 19.81MB +0.01% (1.97kB) ⏫
infer_definition_types 37.78MB 37.78MB -0.00% (496.00B) ⬇️
member_lookup_with_policy_inner 9.32MB 9.32MB +0.00% (456.00B) ⏫
infer_implicit_alias_type 166.15kB 165.80kB -0.21% (352.00B) ⬇️
try_metaclass_inner 646.08kB 645.73kB -0.05% (352.00B) ⬇️
... 26 more

@astral-sh-bot

astral-sh-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

ecosystem-analyzer results

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

Full report with detailed diff (timing results)

@charliermarsh charliermarsh changed the title [ty] Reject generic aliases in isinstance and issubclass [ty] Distinguish generic aliases from class objects Oct 14, 2026
@codspeed

codspeed Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 4.25%

⚡ 1 improved benchmark
✅ 183 untouched benchmarks
⏩ 60 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Memory ty_micro[invariant_generic_return_union] 7.7 MB 7.4 MB +4.25%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing charlie/ty-generic-classinfo-diagnostic (a263d21) with charlie/ty-class-specialization-representation (78b2d2d)2

Open in CodSpeed

Footnotes

  1. 60 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on charlie/ty-class-specialization-representation (865db8e) during the generation of this report, so cdfb55b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@charliermarsh
charliermarsh force-pushed the charlie/ty-generic-classinfo-diagnostic branch from e9e87e1 to 9e44d3f Compare October 15, 2026 01:32
@charliermarsh charliermarsh added bug An issue describing something that isn't working, or a PR that fixes a bug and removed diagnostics Diagnostic messages, annotations, suggested fixes, and rendering infrastructure labels Oct 15, 2026
@charliermarsh charliermarsh changed the title [ty] Distinguish generic aliases from class objects [ty] Reject runtime generic aliases where class objects are required Oct 15, 2026
@charliermarsh
charliermarsh changed the base branch from main to charlie/ty-class-specialization-representation October 15, 2026 01:32
@charliermarsh
charliermarsh added this pull request to stack #29404 October 15, 2026 01:43
@charliermarsh
charliermarsh force-pushed the charlie/ty-generic-classinfo-diagnostic branch from 9e44d3f to a263d21 Compare October 15, 2026 01:50
@charliermarsh
charliermarsh removed this pull request from stack #29404 October 15, 2026 03:00

This branch was successfully deployed

1 active deployment
automations — a263d210 Deployed Oct 15, 2026 by charliermarsh via security-review / security review #91867
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue describing something that isn't working, or a PR that fixes a bug ty The ty type checker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subscripted generic classes should not be considered instances of type

1 participant