MCPcopy
hub / github.com/treeverse/dvc / __init__

Method __init__

dvc/parsing/context.py:33–43  ·  view source on GitHub ↗
(self, keys, path=None)

Source from the content-addressed store, hash-verified

31
32class ReservedKeyError(ContextError):
33 def __init__(self, keys, path=None):
34 from dvc.utils.humanize import join
35
36 self.keys = keys
37 self.path = path
38
39 n = "key" + ("s" if len(keys) > 1 else "")
40 msg = f"attempted to modify reserved {n} {join(keys)}"
41 if path:
42 msg += f" in '{path}'"
43 super().__init__(msg)
44
45
46class MergeError(ContextError):

Callers

nothing calls this directly

Calls 2

joinFunction · 0.90
__init__Method · 0.45

Tested by

no test coverage detected