summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--checkers/classes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/checkers/classes.py b/checkers/classes.py
index eeaf689..030bee6 100644
--- a/checkers/classes.py
+++ b/checkers/classes.py
@@ -585,6 +585,8 @@ a metaclass class method.'}
return
slots = klass.slots()
+ if slots is None:
+ return
# If any ancestor doesn't use slots, the slots
# defined for this class are superfluous.
if any('__slots__' not in ancestor.locals and