diff --git a/sympy/polys/polyutils.py b/sympy/polys/polyutils.py index 6e70a5572f73..d03b2923307b 100644 --- a/sympy/polys/polyutils.py +++ b/sympy/polys/polyutils.py @@ -470,7 +470,7 @@ def __getstate__(self, cls=None): # Get all data that should be stored from super classes for c in cls.__bases__: - if hasattr(c, "__getstate__"): + if c is not object and hasattr(c, "__getstate__"): d.update(c.__getstate__(self, c)) # Get all information that should be stored from cls and return the dict