Skip to content

mecfs_bio.build_system.rebuilder.fetch.restricted_fetch

Classes:

  • RestrictedFetch

    A Fetch the prevents the retrieval of assets except those on a given list.

RestrictedFetch

Bases: Fetch

A Fetch the prevents the retrieval of assets except those on a given list. Used to ensure the declared dependencies of a task are accurate.

Methods:

Attributes:

inner instance-attribute

inner: Fetch

meta_deps instance-attribute

meta_deps: frozenset[AssetId]

from_task classmethod

from_task(fetch: Fetch, task: Task)
Source code in mecfs_bio/build_system/rebuilder/fetch/restricted_fetch.py
@classmethod
def from_task(cls, fetch: Fetch, task: Task):
    return cls(fetch, frozenset({dep.meta.asset_id for dep in task.deps}))