f-string parts are also PythonLeaf instances

This commit is contained in:
Dave Halter
2019-01-24 00:15:44 +01:00
parent 32a83b932a
commit b5d8175eaa

View File

@@ -268,7 +268,7 @@ class String(Literal):
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
the string parts of f-strings.
@@ -277,7 +277,7 @@ class FStringString(Leaf):
__slots__ = ()
class FStringStart(Leaf):
class FStringStart(PythonLeaf):
"""
f-strings contain f-string expressions and normal python strings. These are
the string parts of f-strings.
@@ -286,7 +286,7 @@ class FStringStart(Leaf):
__slots__ = ()
class FStringEnd(Leaf):
class FStringEnd(PythonLeaf):
"""
f-strings contain f-string expressions and normal python strings. These are
the string parts of f-strings.