mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
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
|
||||
|
||||
digest_size: None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user