mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 04:52:21 +08:00
Third-party stubs: enforce CamelCase for type alias names (#8256)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -96,14 +96,14 @@ 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: TypeAlias = str
|
||||
_Str: TypeAlias = str
|
||||
|
||||
class Password:
|
||||
hashfunc: Callable[[bytes], _Hash]
|
||||
str: _str | None
|
||||
def __init__(self, str: _str | None = ..., hashfunc: Callable[[bytes], _Hash] | None = ...) -> None: ...
|
||||
def set(self, value: bytes | _str) -> None: ...
|
||||
def __eq__(self, other: _str | bytes | None) -> bool: ... # type: ignore[override]
|
||||
str: _Str | None
|
||||
def __init__(self, str: _Str | None = ..., hashfunc: Callable[[bytes], _Hash] | None = ...) -> None: ...
|
||||
def set(self, value: bytes | _Str) -> None: ...
|
||||
def __eq__(self, other: _Str | bytes | None) -> bool: ... # type: ignore[override]
|
||||
def __len__(self) -> int: ...
|
||||
|
||||
def notify(
|
||||
|
||||
Reference in New Issue
Block a user