mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from types import ModuleType
|
||||
from typing import Any, AnyStr, Callable, Union, overload
|
||||
from typing import Any, AnyStr, Callable, overload
|
||||
|
||||
# TODO more precise type for object of hashlib
|
||||
_Hash = Any
|
||||
_DigestMod = Union[str, Callable[[], _Hash], ModuleType]
|
||||
_DigestMod = str | Callable[[], _Hash] | ModuleType
|
||||
|
||||
trans_5C: bytes
|
||||
trans_36: bytes
|
||||
|
||||
Reference in New Issue
Block a user