Audit stdlib object annotations (#9519)

This commit is contained in:
Avasam
2023-01-17 10:40:00 -05:00
committed by GitHub
parent 3d6b8dccfe
commit c70d303985
31 changed files with 79 additions and 79 deletions

View File

@@ -1,3 +1,5 @@
import sys
from _typeshed import Unused
from enum import Enum
from typing_extensions import TypeAlias
@@ -64,7 +66,12 @@ class UUID:
def __gt__(self, other: UUID) -> bool: ...
def __ge__(self, other: UUID) -> bool: ...
def getnode() -> int: ...
if sys.version_info >= (3, 9):
def getnode() -> int: ...
else:
def getnode(*, getters: Unused = ...) -> int: ... # undocumented
def uuid1(node: _Int | None = ..., clock_seq: _Int | None = ...) -> UUID: ...
def uuid3(namespace: UUID, name: str) -> UUID: ...
def uuid4() -> UUID: ...