mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
Third-party stubs: fix several fictitious type aliases (#7958)
This commit is contained in:
1
stubs/google-cloud-ndb/@tests/requirements-stubtest.txt
Normal file
1
stubs/google-cloud-ndb/@tests/requirements-stubtest.txt
Normal file
@@ -0,0 +1 @@
|
||||
protobuf==3.20.1
|
||||
@@ -24,14 +24,14 @@ class UserNotFoundError(exceptions.Error): ...
|
||||
class _NotEqualMixin:
|
||||
def __ne__(self, other: object) -> bool: ...
|
||||
|
||||
DirectionT: TypeAlias = Literal["asc", "desc"]
|
||||
_Direction: TypeAlias = Literal["asc", "desc"]
|
||||
|
||||
class IndexProperty(_NotEqualMixin):
|
||||
def __new__(cls: type[Self], name: str, direction: DirectionT) -> Self: ...
|
||||
def __new__(cls: type[Self], name: str, direction: _Direction) -> Self: ...
|
||||
@property
|
||||
def name(self) -> str: ...
|
||||
@property
|
||||
def direction(self) -> DirectionT: ...
|
||||
def direction(self) -> _Direction: ...
|
||||
def __eq__(self, other: object) -> bool: ...
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user