Skip to content
Snippets Groups Projects
Commit 32dc069e authored by Alexandru Fikl's avatar Alexandru Fikl Committed by Andreas Klöckner
Browse files

implement _with_new_tags for taggable.Axis

parent 17dcc60d
No related branches found
No related tags found
No related merge requests found
Pipeline #290783 passed
......@@ -19,9 +19,9 @@ class Axis(Taggable):
"""
tags: FrozenSet[Tag]
def copy(self, **kwargs):
def _with_new_tags(self, tags: FrozenSet[Tag]) -> "Axis":
from dataclasses import replace
return replace(self, **kwargs)
return replace(self, tags=tags)
@memoize
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment