Skip to content

Commit

Permalink
Merge pull request #204 from ariebovenberg/fix-slots
Browse files Browse the repository at this point in the history
Add missing slots to base classes
  • Loading branch information
davidhalter authored Feb 14, 2022
2 parents ee5edaf + 0740450 commit 8ee84d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parso/python/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ class FStringEnd(PythonLeaf):


class _StringComparisonMixin:
__slots__ = ()

def __eq__(self, other):
"""
Make comparisons with strings easy.
Expand Down Expand Up @@ -544,6 +546,7 @@ class Function(ClassOrFunc):
4. annotation (if present)
"""
type = 'funcdef'
__slots__ = ()

def __init__(self, children):
super().__init__(children)
Expand Down

0 comments on commit 8ee84d0

Please sign in to comment.