mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 11:11:26 +08:00
Use _typeshed.IdentityFunction more consistently (#8063)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user