mirror of
https://github.com/davidhalter/parso.git
synced 2026-05-19 23:10:16 +08:00
f-string parts are also PythonLeaf instances
This commit is contained in:
@@ -268,7 +268,7 @@ class String(Literal):
|
|||||||
return match.group(2)[:-len(match.group(1))]
|
return match.group(2)[:-len(match.group(1))]
|
||||||
|
|
||||||
|
|
||||||
class FStringString(Leaf):
|
class FStringString(PythonLeaf):
|
||||||
"""
|
"""
|
||||||
f-strings contain f-string expressions and normal python strings. These are
|
f-strings contain f-string expressions and normal python strings. These are
|
||||||
the string parts of f-strings.
|
the string parts of f-strings.
|
||||||
@@ -277,7 +277,7 @@ class FStringString(Leaf):
|
|||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class FStringStart(Leaf):
|
class FStringStart(PythonLeaf):
|
||||||
"""
|
"""
|
||||||
f-strings contain f-string expressions and normal python strings. These are
|
f-strings contain f-string expressions and normal python strings. These are
|
||||||
the string parts of f-strings.
|
the string parts of f-strings.
|
||||||
@@ -286,7 +286,7 @@ class FStringStart(Leaf):
|
|||||||
__slots__ = ()
|
__slots__ = ()
|
||||||
|
|
||||||
|
|
||||||
class FStringEnd(Leaf):
|
class FStringEnd(PythonLeaf):
|
||||||
"""
|
"""
|
||||||
f-strings contain f-string expressions and normal python strings. These are
|
f-strings contain f-string expressions and normal python strings. These are
|
||||||
the string parts of f-strings.
|
the string parts of f-strings.
|
||||||
|
|||||||
Reference in New Issue
Block a user