summaryrefslogtreecommitdiffstats
path: root/Lib/statistics.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/statistics.py')
-rw-r--r--Lib/statistics.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/statistics.py b/Lib/statistics.py
index f662453..52f1785 100644
--- a/Lib/statistics.py
+++ b/Lib/statistics.py
@@ -1265,3 +1265,9 @@ class NormalDist:
def __repr__(self):
return f'{type(self).__name__}(mu={self._mu!r}, sigma={self._sigma!r})'
+
+ def __getstate__(self):
+ return self._mu, self._sigma
+
+ def __setstate__(self, state):
+ self._mu, self._sigma = state