mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 12:54:29 +08:00
add missing slots to base classes
This commit is contained in:
@@ -295,6 +295,8 @@ class FStringEnd(PythonLeaf):
|
||||
|
||||
|
||||
class _StringComparisonMixin:
|
||||
__slots__ = ()
|
||||
|
||||
def __eq__(self, other):
|
||||
"""
|
||||
Make comparisons with strings easy.
|
||||
@@ -544,6 +546,7 @@ class Function(ClassOrFunc):
|
||||
4. annotation (if present)
|
||||
"""
|
||||
type = 'funcdef'
|
||||
__slots__ = ()
|
||||
|
||||
def __init__(self, children):
|
||||
super().__init__(children)
|
||||
|
||||
Reference in New Issue
Block a user