Skip to content

Commit

Permalink
f-string parts are also PythonLeaf instances
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Jan 23, 2019
1 parent 32a83b9 commit b5d8175
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parso/python/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def _get_payload(self):
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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit b5d8175

Please sign in to comment.