From d1e768a67707bf7bb426c1537e1a764e89eaff78 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 25 Mar 2019 13:01:13 -0700 Subject: bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498) --- Lib/statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/statistics.py') diff --git a/Lib/statistics.py b/Lib/statistics.py index e5a62463f0..bd8a6f9638 100644 --- a/Lib/statistics.py +++ b/Lib/statistics.py @@ -709,7 +709,8 @@ class NormalDist: # https://en.wikipedia.org/wiki/Normal_distribution # https://en.wikipedia.org/wiki/Variance#Properties - __slots__ = ('mu', 'sigma') + __slots__ = {'mu': 'Arithmetic mean of a normal distribution', + 'sigma': 'Standard deviation of a normal distribution'} def __init__(self, mu=0.0, sigma=1.0): 'NormalDist where mu is the mean and sigma is the standard deviation.' -- cgit v1.2.1