Third-party stubs: fix several fictitious type aliases (#7958)

This commit is contained in:
Alex Waygood
2022-05-26 14:26:26 +01:00
committed by GitHub
parent 597be79b18
commit fa636bc044
15 changed files with 69 additions and 73 deletions

View File

@@ -0,0 +1 @@
protobuf==3.20.1

View File

@@ -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: ...