diff --git a/requirements-tests.txt b/requirements-tests.txt index 0441ba18d68f..092ed6b4b908 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -3,7 +3,7 @@ mypy==2.4.1 pyrefly==1.4.1 pyright==1.1.414 -ty==0.0.105 +ty==0.0.107 # Libraries used by our various scripts. aiohttp==3.14.4 diff --git a/stdlib/dataclasses.pyi b/stdlib/dataclasses.pyi index abe1f8457434..9bff455f19f0 100644 --- a/stdlib/dataclasses.pyi +++ b/stdlib/dataclasses.pyi @@ -298,7 +298,7 @@ def fields(class_or_instance: DataclassInstance | type[DataclassInstance]) -> tu # HACK: `obj: Never` typing matches if object argument is using `Any` type. @overload -def is_dataclass(obj: Never) -> TypeIs[DataclassInstance | type[DataclassInstance]]: ... # type: ignore[narrowed-type-not-subtype] # pyright: ignore[reportGeneralTypeIssues] # ty:ignore[invalid-type-guard-definition] # pyrefly: ignore [bad-function-definition] +def is_dataclass(obj: Never) -> TypeIs[DataclassInstance | type[DataclassInstance]]: ... # type: ignore[narrowed-type-not-subtype] # pyright: ignore[reportGeneralTypeIssues] # ty:ignore[disjoint-type-is-narrowing] # pyrefly: ignore [bad-function-definition] @overload def is_dataclass(obj: type) -> TypeIs[type[DataclassInstance]]: ... @overload