MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / __init__

Method __init__

misc/python/materialize/mzbuild.py:1350–1364  ·  view source on GitHub ↗

Construct a new `DependencySet`. The provided `dependencies` must be topologically sorted.

(self, dependencies: Iterable[Image])

Source from the content-addressed store, hash-verified

1348 """
1349
1350 def __init__(self, dependencies: Iterable[Image]):
1351 """Construct a new `DependencySet`.
1352
1353 The provided `dependencies` must be topologically sorted.
1354 """
1355 self._dependencies: dict[str, ResolvedImage] = {}
1356 dependencies = list(dependencies)
1357 known_images = docker_images() if dependencies else set()
1358 for d in dependencies:
1359 image = ResolvedImage(
1360 image=d,
1361 dependencies=(self._dependencies[d0] for d0 in d.depends_on),
1362 )
1363 image.acquired = image.spec() in known_images
1364 self._dependencies[d.name] = image
1365
1366 def _prepare_batch(self, images: list[ResolvedImage]) -> dict[type[PreImage], Any]:
1367 pre_images = collections.defaultdict(list)

Callers

nothing calls this directly

Calls 5

specMethod · 0.95
docker_imagesFunction · 0.85
ResolvedImageClass · 0.85
listFunction · 0.50
setFunction · 0.50

Tested by

no test coverage detected