Skip to content

Commit f5977a2

Browse files
ConchylicultorThe dataclass_array Authors
authored andcommitted
Add my_obj.fig_config.name property to all v3d objects
This allow to set the names in the figures: ```python rays = rays.replace_fig_config(name='My ray') ``` PiperOrigin-RevId: 479051391
1 parent 4052fc0 commit f5977a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dataclass_array/array_dataclass.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ def __init_subclass__(cls, **kwargs):
202202
cls._dca_fields_metadata: Optional[dict[str, _ArrayFieldMetadata]] = None
203203

204204
# Normalize the `cls.__dca_non_init_fields__`
205+
# TODO(epot): Support inheritance if the parents also define
206+
# `__dca_non_init_fields__` (fields should be merged from `.mro()`)
205207
cls.__dca_non_init_fields__ = set(cls.__dca_non_init_fields__)
206208

207209
def __post_init__(self) -> None:

0 commit comments

Comments
 (0)