mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Upgrade black version (#7089)
This commit is contained in:
@@ -15,6 +15,7 @@ class Random(_random.Random):
|
||||
def seed(self, a: int | float | str | bytes | bytearray | None = ..., version: int = ...) -> None: ... # type: ignore[override]
|
||||
else:
|
||||
def seed(self, a: Any = ..., version: int = ...) -> None: ...
|
||||
|
||||
def getstate(self) -> tuple[Any, ...]: ...
|
||||
def setstate(self, state: tuple[Any, ...]) -> None: ...
|
||||
def getrandbits(self, __k: int) -> int: ...
|
||||
@@ -22,6 +23,7 @@ class Random(_random.Random):
|
||||
def randint(self, a: int, b: int) -> int: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def randbytes(self, n: int) -> bytes: ...
|
||||
|
||||
def choice(self, seq: SupportsLenAndGetItem[_T]) -> _T: ...
|
||||
def choices(
|
||||
self,
|
||||
@@ -38,6 +40,7 @@ class Random(_random.Random):
|
||||
) -> list[_T]: ...
|
||||
else:
|
||||
def sample(self, population: Sequence[_T] | AbstractSet[_T], k: int) -> list[_T]: ...
|
||||
|
||||
def random(self) -> float: ...
|
||||
def uniform(self, a: float, b: float) -> float: ...
|
||||
def triangular(self, low: float = ..., high: float = ..., mode: float | None = ...) -> float: ...
|
||||
|
||||
Reference in New Issue
Block a user