Source code for aeat.core.resources._repos.apoderamientos
"""Apoderamiento-scope catalogue repository.:class:`ApoderamientosRepository` exposes the singleton apoderamientos cataloguethrough the shared :class:`ResourceCacheRepository` cache used by:class:`ResourceRegistry`."""from__future__importannotationsfromtypingimportoverridefrom.._repositoryimportResourceCacheRepository
[docs]classApoderamientosRepository(ResourceCacheRepository[object,None]):"""Singleton-keyed repository for the apoderamientos scope catalogue. Wraps :func:`aeat.domain.auth.apoderamientos.load_default_catalogue` behind the shared :class:`ResourceCacheRepository` cache. """@overridedef_load(self,key:None)->object:from....domain.auth.apoderamientosimportload_default_cataloguereturnload_default_catalogue()@propertydefsingleton(self)->object:"""Convenience accessor for the singleton resource."""returnself.get(None)