mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-28 12:32:20 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -118,7 +118,7 @@ class LRUCache(dict[_KT, _VT]):
|
||||
def __init__(self, capacity: int) -> None: ...
|
||||
|
||||
# This exists to work around Password.str's name shadowing the str type
|
||||
_str = str
|
||||
_str: TypeAlias = str
|
||||
|
||||
class Password:
|
||||
hashfunc: Callable[[bytes], _HashType]
|
||||
|
||||
Reference in New Issue
Block a user