Skip to content

Commit 0740450

Browse files
committed
add missing slots to base classes
1 parent ee5edaf commit 0740450

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: parso/python/tree.py

+3
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ class FStringEnd(PythonLeaf):
295295

296296

297297
class _StringComparisonMixin:
298+
__slots__ = ()
299+
298300
def __eq__(self, other):
299301
"""
300302
Make comparisons with strings easy.
@@ -544,6 +546,7 @@ class Function(ClassOrFunc):
544546
4. annotation (if present)
545547
"""
546548
type = 'funcdef'
549+
__slots__ = ()
547550

548551
def __init__(self, children):
549552
super().__init__(children)

0 commit comments

Comments
 (0)