Changeset View
Changeset View
Standalone View
Standalone View
swh/loader/core/metadata_fetchers.py
Show All 14 Lines | |||||
@runtime_checkable | @runtime_checkable | ||||
class MetadataFetcherProtocol(Protocol): | class MetadataFetcherProtocol(Protocol): | ||||
"""Interface provided by :class:`swh.loader.metadata.base.BaseMetadataFetcher` | """Interface provided by :class:`swh.loader.metadata.base.BaseMetadataFetcher` | ||||
to loaders, via setuptools entrypoints.""" | to loaders, via setuptools entrypoints.""" | ||||
SUPPORTED_LISTERS: Set[str] | SUPPORTED_LISTERS: Set[str] | ||||
FETCHER_NAME: str | |||||
def __init__( | def __init__( | ||||
self, | self, | ||||
origin: Origin, | origin: Origin, | ||||
credentials: CredentialsType, | credentials: CredentialsType, | ||||
lister_name: str, | lister_name: str, | ||||
lister_instance_name: str, | lister_instance_name: str, | ||||
): | ): | ||||
Show All 20 Lines |