diff --git a/masque/pattern.py b/masque/pattern.py index ecd9787..9e136e1 100644 --- a/masque/pattern.py +++ b/masque/pattern.py @@ -734,6 +734,9 @@ class NamedPattern(Pattern): s += ']>' return s + def __str__(self) -> str: + return self.name + def __copy__(self) -> Pattern: return Pattern.__copy__(self)