rberga06.utils.types.ref#
- class rberga06.utils.types.ref(inner: _T | ReferenceType[_T], /)#
Bases:
Generic
[_T
],SupportsPydanticV2
[ref[_T] | weakref.ref[_T] | _T
]Flexible, static reference (can be either a weak or a strong reference).
Methods
Attributes
- inner: ReferenceType[_T] | _T#
The wrapped value or a weak reference to it.