lories.core.register.registration ================================= .. py:module:: lories.core.register.registration .. autoapi-nested-parse:: lories.core.register.registry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Exceptions ---------- .. autoapisummary:: lories.core.register.registration.RegistrationError Classes ------- .. autoapisummary:: lories.core.register.registration.Registration Module Contents --------------- .. py:exception:: RegistrationError Bases: :py:obj:`lories.core.errors.ResourceError` .. autoapi-inheritance-diagram:: lories.core.register.registration.RegistrationError :parts: 1 :private-bases: Raise if an error with the registration occurred. Initialize self. See help(type(self)) for accurate signature. .. py:class:: Registration(cls: Type[lories._core._registrator.Registrator], type: str, *alias: str, factory: Optional[RegistrationFactory] = None) Bases: :py:obj:`Generic`\ [\ :py:obj:`lories._core._registrator.Registrator`\ ] .. autoapi-inheritance-diagram:: lories.core.register.registration.Registration :parts: 1 :private-bases: Abstract base class for generic types. A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:: class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc. This class can then be used as follows:: def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default