Using dunder parameter name in builtins._SupportsLessThan (#4264)

This commit is contained in:
Jia Chen
2020-06-25 12:02:00 -07:00
committed by GitHub
parent 70459abb44
commit 92fa4e799c
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class _SupportsIndex(Protocol):
def __index__(self) -> int: ...
class _SupportsLessThan(Protocol):
def __lt__(self, other: Any) -> bool: ...
def __lt__(self, __other: Any) -> bool: ...
_T = TypeVar('_T')
_T_co = TypeVar('_T_co', covariant=True)

View File

@@ -33,7 +33,7 @@ class _SupportsIndex(Protocol):
def __index__(self) -> int: ...
class _SupportsLessThan(Protocol):
def __lt__(self, other: Any) -> bool: ...
def __lt__(self, __other: Any) -> bool: ...
_T = TypeVar('_T')
_T_co = TypeVar('_T_co', covariant=True)