Skip to content

Commit

Permalink
Make structure overridable.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Dec 17, 2024
1 parent b57926e commit 5b449c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tiled/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def new_variation(
self,
structure_clients=UNCHANGED,
include_data_sources=UNCHANGED,
structure=UNCHANGED,
**kwargs,
):
"""
Expand All @@ -282,10 +283,12 @@ def new_variation(
structure_clients = self.structure_clients
if include_data_sources is UNCHANGED:
include_data_sources = self._include_data_sources
if structure is UNCHANGED:
structure = self._structure
return type(self)(
self.context,
item=self._item,
structure=self._structure,
structure=structure,
structure_clients=structure_clients,
include_data_sources=include_data_sources,
**kwargs,
Expand Down

0 comments on commit 5b449c1

Please sign in to comment.