str(namedpattern) should just return its name

This commit is contained in:
Jan Petykiewicz 2023-03-19 10:17:30 -07:00 committed by jan
parent f54193edf0
commit b744a11e8e

View File

@ -734,6 +734,9 @@ class NamedPattern(Pattern):
s += ']>' s += ']>'
return s return s
def __str__(self) -> str:
return self.name
def __copy__(self) -> Pattern: def __copy__(self) -> Pattern:
return Pattern.__copy__(self) return Pattern.__copy__(self)