Use proper leafs for fstring start/end

This commit is contained in:
Dave Halter
2018-04-07 12:32:33 +02:00
parent d3fa7e1cad
commit f6935935c0
2 changed files with 33 additions and 13 deletions
+18
View File
@@ -271,6 +271,24 @@ class FStringString(Leaf):
__slots__ = ()
class FStringStart(Leaf):
"""
f-strings contain f-string expressions and normal python strings. These are
the string parts of f-strings.
"""
type = 'fstring_start'
__slots__ = ()
class FStringEnd(Leaf):
"""
f-strings contain f-string expressions and normal python strings. These are
the string parts of f-strings.
"""
type = 'fstring_end'
__slots__ = ()
class _StringComparisonMixin(object):
def __eq__(self, other):
"""