djblets.registries.mixins¶
Utility mixins for registries.
- class ExceptionFreeGetterMixin¶
Bases:
Generic
[RegistryItemType
]A mixin that prevents lookups from throwing errors.
If using typed registries and inheriting from this mixin, the same type should be passed to this class as well.
This class may be deprecated in the future. Callers may want to switch to calling
Registry.get_or_none()
instead, which offers the same functionality.Changed in version 3.1: Added support for specifying a registry item type when subclassing this mixin.
- __annotations__ = {}¶
- __orig_bases__ = (typing.Generic[~RegistryItemType],)¶
- __parameters__ = (~RegistryItemType,)¶