Skip to content

Commit

Permalink
add missing slots to base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ariebovenberg committed Feb 14, 2022
1 parent ee5edaf commit 0740450
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 0740450

Please sign in to comment.