From cd549193210b88257075bf12eb4fa68669aaf1fd Mon Sep 17 00:00:00 2001 From: Maximilian Linhoff Date: Wed, 5 Aug 2026 11:54:16 +0200 Subject: [PATCH] Improve Field default docstring --- src/ctapipe/core/container.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ctapipe/core/container.py b/src/ctapipe/core/container.py index 748cf3d7de9..3f8f6112917 100644 --- a/src/ctapipe/core/container.py +++ b/src/ctapipe/core/container.py @@ -49,8 +49,9 @@ class Field[T]: default : Default value of the item. This will be set when the `Container` is constructed, as well as when ``Container.reset`` is called. - This should only be used for immutable values. For mutable values, - use ``default_factory`` instead. + The value passed to ``default`` should be immutable, as it is + assigned as is to each new container instance. + For mutable default values, use ``default_factory`` instead. description : str Help text associated with the item unit : str or astropy.units.core.UnitBase