mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -2,10 +2,11 @@ import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from types import ModuleType
|
||||
from typing import Any, AnyStr, Callable, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
# TODO more precise type for object of hashlib
|
||||
_Hash = Any
|
||||
_DigestMod = str | Callable[[], _Hash] | ModuleType
|
||||
_Hash: TypeAlias = Any
|
||||
_DigestMod: TypeAlias = str | Callable[[], _Hash] | ModuleType
|
||||
|
||||
trans_5C: bytes
|
||||
trans_36: bytes
|
||||
|
||||
Reference in New Issue
Block a user