add missing slots to base classes

This commit is contained in:
Arie Bovenberg
2022-02-12 21:28:03 +01:00
parent ee5edaf22f
commit 0740450899

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)