Merge pull request #204 from ariebovenberg/fix-slots

Add missing slots to base classes
This commit is contained in:
Dave Halter
2022-02-15 00:25:40 +01:00
committed by GitHub

View File

@@ -295,6 +295,8 @@ class FStringEnd(PythonLeaf):
class _StringComparisonMixin: class _StringComparisonMixin:
__slots__ = ()
def __eq__(self, other): def __eq__(self, other):
""" """
Make comparisons with strings easy. Make comparisons with strings easy.
@@ -544,6 +546,7 @@ class Function(ClassOrFunc):
4. annotation (if present) 4. annotation (if present)
""" """
type = 'funcdef' type = 'funcdef'
__slots__ = ()
def __init__(self, children): def __init__(self, children):
super().__init__(children) super().__init__(children)