From 074045089926775812c331ac8e40733fca8a2733 Mon Sep 17 00:00:00 2001 From: Arie Bovenberg Date: Sat, 12 Feb 2022 21:28:03 +0100 Subject: [PATCH] add missing slots to base classes --- parso/python/tree.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parso/python/tree.py b/parso/python/tree.py index ebb4087..0624e67 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -295,6 +295,8 @@ class FStringEnd(PythonLeaf): class _StringComparisonMixin: + __slots__ = () + def __eq__(self, other): """ Make comparisons with strings easy. @@ -544,6 +546,7 @@ class Function(ClassOrFunc): 4. annotation (if present) """ type = 'funcdef' + __slots__ = () def __init__(self, children): super().__init__(children)