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

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-05-26 06:26:26 -07:00
1 parent 597be79b18
commit fa636bc044
15 files changed
+69 -73

No files matched your search

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