mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 04:16:44 +08:00
Audit stdlib object annotations (#9519)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user