Use lowercase type everywhere (#6853)

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-01-08 16:09:29 +01:00
1 parent f8501d33c7
commit a40d79a4e6
172 files changed
+728 -761

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import sys
from _typeshed import SupportsRichComparisonT
from decimal import Decimal
from fractions import Fraction
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, Type, TypeVar, Union
from typing import Any, Hashable, Iterable, NamedTuple, Sequence, SupportsFloat, TypeVar, Union
_T = TypeVar("_T")
# Most functions in this module accept homogeneous collections of one of these types
@@ -58,7 +58,7 @@ if sys.version_info >= (3, 8):
@property
def variance(self) -> float: ...
@classmethod
def from_samples(cls: Type[_T], data: Iterable[SupportsFloat]) -> _T: ...
def from_samples(cls: type[_T], data: Iterable[SupportsFloat]) -> _T: ...
def samples(self, n: int, *, seed: Any | None = ...) -> list[float]: ...
def pdf(self, x: float) -> float: ...
def cdf(self, x: float) -> float: ...