mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 05:14:29 +08:00
add missing slots to base classes
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user