mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -112,7 +112,7 @@ class partial(Generic[_T]):
|
||||
def __class_getitem__(cls, item: Any) -> GenericAlias: ...
|
||||
|
||||
# With protocols, this could change into a generic protocol that defines __get__ and returns _T
|
||||
_Descriptor = Any
|
||||
_Descriptor: TypeAlias = Any
|
||||
|
||||
class partialmethod(Generic[_T]):
|
||||
func: Callable[..., _T] | _Descriptor
|
||||
|
||||
Reference in New Issue
Block a user