mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -3,7 +3,7 @@ import sys
|
||||
from _typeshed import SupportsLenAndGetItem
|
||||
from collections.abc import Callable, Iterable, MutableSequence, Sequence, Set as AbstractSet
|
||||
from fractions import Fraction
|
||||
from typing import Any, ClassVar, NoReturn, Tuple, TypeVar
|
||||
from typing import Any, ClassVar, NoReturn, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -11,8 +11,8 @@ class Random(_random.Random):
|
||||
VERSION: ClassVar[int]
|
||||
def __init__(self, x: Any = ...) -> None: ...
|
||||
def seed(self, a: Any = ..., version: int = ...) -> None: ...
|
||||
def getstate(self) -> Tuple[Any, ...]: ...
|
||||
def setstate(self, state: Tuple[Any, ...]) -> None: ...
|
||||
def getstate(self) -> tuple[Any, ...]: ...
|
||||
def setstate(self, state: tuple[Any, ...]) -> None: ...
|
||||
def getrandbits(self, __k: int) -> int: ...
|
||||
def randrange(self, start: int, stop: int | None = ..., step: int = ...) -> int: ...
|
||||
def randint(self, a: int, b: int) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user