mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
bpo-36326: Let inspect.getdoc() find docstrings for __slots__ (GH-12498)
This commit is contained in:
parent
713a8ae792
commit
d1e768a677
6 changed files with 32 additions and 3 deletions
|
|
@ -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.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue