mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-12 03:10:52 +08:00
stdlib: add __slots__ (#14611)
This commit is contained in:
@@ -79,6 +79,7 @@ def stdev(data: Iterable[_NumberT], xbar: _NumberT | None = None) -> _NumberT: .
|
||||
def variance(data: Iterable[_NumberT], xbar: _NumberT | None = None) -> _NumberT: ...
|
||||
|
||||
class NormalDist:
|
||||
__slots__ = {"_mu": "Arithmetic mean of a normal distribution", "_sigma": "Standard deviation of a normal distribution"}
|
||||
def __init__(self, mu: float = 0.0, sigma: float = 1.0) -> None: ...
|
||||
@property
|
||||
def mean(self) -> float: ...
|
||||
|
||||
Reference in New Issue
Block a user