mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -2,7 +2,7 @@ import sys
|
||||
from _typeshed import SupportsLessThanT
|
||||
from decimal import Decimal
|
||||
from fractions import Fraction
|
||||
from typing import Any, Hashable, Iterable, List, NamedTuple, Sequence, SupportsFloat, Type, TypeVar, Union
|
||||
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, Type, TypeVar, Union
|
||||
|
||||
_T = TypeVar("_T")
|
||||
# Most functions in this module accept homogeneous collections of one of these types
|
||||
@@ -33,13 +33,13 @@ def median_grouped(data: Iterable[_NumberT], interval: _NumberT = ...) -> _Numbe
|
||||
def mode(data: Iterable[_HashableT]) -> _HashableT: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def multimode(data: Iterable[_HashableT]) -> List[_HashableT]: ...
|
||||
def multimode(data: Iterable[_HashableT]) -> list[_HashableT]: ...
|
||||
|
||||
def pstdev(data: Iterable[_NumberT], mu: _NumberT | None = ...) -> _NumberT: ...
|
||||
def pvariance(data: Iterable[_NumberT], mu: _NumberT | None = ...) -> _NumberT: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def quantiles(data: Iterable[_NumberT], *, n: int = ..., method: str = ...) -> List[_NumberT]: ...
|
||||
def quantiles(data: Iterable[_NumberT], *, n: int = ..., method: str = ...) -> list[_NumberT]: ...
|
||||
|
||||
def stdev(data: Iterable[_NumberT], xbar: _NumberT | None = ...) -> _NumberT: ...
|
||||
def variance(data: Iterable[_NumberT], xbar: _NumberT | None = ...) -> _NumberT: ...
|
||||
@@ -59,12 +59,12 @@ if sys.version_info >= (3, 8):
|
||||
def variance(self) -> float: ...
|
||||
@classmethod
|
||||
def from_samples(cls: Type[_T], data: Iterable[SupportsFloat]) -> _T: ...
|
||||
def samples(self, n: int, *, seed: Any | None = ...) -> List[float]: ...
|
||||
def samples(self, n: int, *, seed: Any | None = ...) -> list[float]: ...
|
||||
def pdf(self, x: float) -> float: ...
|
||||
def cdf(self, x: float) -> float: ...
|
||||
def inv_cdf(self, p: float) -> float: ...
|
||||
def overlap(self, other: NormalDist) -> float: ...
|
||||
def quantiles(self, n: int = ...) -> List[float]: ...
|
||||
def quantiles(self, n: int = ...) -> list[float]: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def zscore(self, x: float) -> float: ...
|
||||
def __add__(self, x2: float | NormalDist) -> NormalDist: ...
|
||||
|
||||
Reference in New Issue
Block a user