mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
apply black and isort (#4287)
* apply black and isort * move some type ignores
This commit is contained in:
@@ -10,7 +10,7 @@ import _random
|
||||
from typing import AbstractSet, Any, Callable, Iterator, List, MutableSequence, Protocol, Sequence, TypeVar, Union, overload
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_T_co = TypeVar('_T_co', covariant=True)
|
||||
_T_co = TypeVar("_T_co", covariant=True)
|
||||
|
||||
class _Sampleable(Protocol[_T_co]):
|
||||
def __iter__(self) -> Iterator[_T_co]: ...
|
||||
@@ -45,8 +45,7 @@ class Random(_random.Random):
|
||||
def weibullvariate(self, alpha: float, beta: float) -> float: ...
|
||||
|
||||
# SystemRandom is not implemented for all OS's; good on Windows & Linux
|
||||
class SystemRandom(Random):
|
||||
...
|
||||
class SystemRandom(Random): ...
|
||||
|
||||
# ----- random function stubs -----
|
||||
def seed(x: object = ...) -> None: ...
|
||||
@@ -64,8 +63,7 @@ def shuffle(x: MutableSequence[Any], random: Callable[[], float] = ...) -> None:
|
||||
def sample(population: _Sampleable[_T], k: int) -> List[_T]: ...
|
||||
def random() -> float: ...
|
||||
def uniform(a: float, b: float) -> float: ...
|
||||
def triangular(low: float = ..., high: float = ...,
|
||||
mode: float = ...) -> float: ...
|
||||
def triangular(low: float = ..., high: float = ..., mode: float = ...) -> float: ...
|
||||
def betavariate(alpha: float, beta: float) -> float: ...
|
||||
def expovariate(lambd: float) -> float: ...
|
||||
def gammavariate(alpha: float, beta: float) -> float: ...
|
||||
|
||||
Reference in New Issue
Block a user