mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Use _typeshed.IdentityFunction more consistently (#8063)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import collections # Needed by aliases like DefaultDict, see mypy issue 2986
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer, Self as TypeshedSelf, SupportsKeysAndGetItem
|
||||
from _typeshed import IdentityFunction, ReadableBuffer, Self as TypeshedSelf, SupportsKeysAndGetItem
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from types import BuiltinFunctionType, CodeType, FrameType, FunctionType, MethodType, ModuleType, TracebackType
|
||||
from typing_extensions import Literal as _Literal, ParamSpec as _ParamSpec, final as _final
|
||||
@@ -874,7 +874,7 @@ if sys.version_info >= (3, 11):
|
||||
kw_only_default: bool = ...,
|
||||
field_specifiers: tuple[type[Any] | Callable[..., Any], ...] = ...,
|
||||
**kwargs: Any,
|
||||
) -> Callable[[_T], _T]: ...
|
||||
) -> IdentityFunction: ...
|
||||
|
||||
# Type constructors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user