Akuli and srittau: Remove Python 2 branches from Python 3 stubs (#5461)

* run script and do some manual changes (Akuli)

* do the whole thing manually (srittau)

* merge changes (Akuli)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
This commit is contained in:
Akuli
2021-05-15 15:33:39 +03:00
committed by GitHub
parent b0ef85288d
commit 17dcea4a68
106 changed files with 1539 additions and 3275 deletions

View File

@@ -71,29 +71,11 @@ class UUID:
@property
def version(self) -> Optional[_Int]: ...
def __int__(self) -> _Int: ...
if sys.version_info >= (3,):
def __eq__(self, other: Any) -> bool: ...
def __lt__(self, other: Any) -> bool: ...
def __le__(self, other: Any) -> bool: ...
def __gt__(self, other: Any) -> bool: ...
def __ge__(self, other: Any) -> bool: ...
else:
def get_bytes(self) -> _Bytes: ...
def get_bytes_le(self) -> _Bytes: ...
def get_clock_seq(self) -> _Int: ...
def get_clock_seq_hi_variant(self) -> _Int: ...
def get_clock_seq_low(self) -> _Int: ...
def get_fields(self) -> _FieldsType: ...
def get_hex(self) -> str: ...
def get_node(self) -> _Int: ...
def get_time(self) -> _Int: ...
def get_time_hi_version(self) -> _Int: ...
def get_time_low(self) -> _Int: ...
def get_time_mid(self) -> _Int: ...
def get_urn(self) -> str: ...
def get_variant(self) -> str: ...
def get_version(self) -> Optional[_Int]: ...
def __cmp__(self, other: Any) -> _Int: ...
def __eq__(self, other: Any) -> bool: ...
def __lt__(self, other: Any) -> bool: ...
def __le__(self, other: Any) -> bool: ...
def __gt__(self, other: Any) -> bool: ...
def __ge__(self, other: Any) -> bool: ...
def getnode() -> int: ...
def uuid1(node: Optional[_Int] = ..., clock_seq: Optional[_Int] = ...) -> UUID: ...