From b5d8175eaa46d1384946ba2435f269f0a0c79569 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 24 Jan 2019 00:15:44 +0100 Subject: [PATCH] f-string parts are also PythonLeaf instances --- parso/python/tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parso/python/tree.py b/parso/python/tree.py index c70c3e5..bb3b446 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -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.