Use _typeshed.IdentityFunction more consistently (#8063)

This commit is contained in:
Alex Waygood
2022-06-13 00:56:14 +01:00
committed by GitHub
parent 033516d39f
commit 1be5918baa
5 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import abc
import sys
from _typeshed import Self as TypeshedSelf # see #6932 for why the alias cannot have a leading underscore
from _typeshed import IdentityFunction, Self as TypeshedSelf # see #6932 for why the Self alias cannot have a leading underscore
from typing import ( # noqa: Y022,Y027,Y039
TYPE_CHECKING as TYPE_CHECKING,
Any,
@@ -232,4 +232,4 @@ else:
kw_only_default: bool = ...,
field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = ...,
**kwargs: object,
) -> Callable[[_T], _T]: ...
) -> IdentityFunction: ...