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

Method __init__

dvc/exceptions.py:148–160  ·  view source on GitHub ↗
(self, stages)

Source from the content-addressed store, hash-verified

146
147class CyclicGraphError(DvcException):
148 def __init__(self, stages):
149 assert isinstance(stages, list)
150 stage_part = "stage" if len(stages) == 1 else "stages"
151 msg = (
152 "Same item(s) are defined as both a dependency and an output "
153 "in {stage_part}: {stage}."
154 )
155 super().__init__(
156 msg.format(
157 stage_part=stage_part,
158 stage=", ".join(s.addressing for s in stages),
159 )
160 )
161
162
163class ConfirmRemoveError(DvcException):

Callers

nothing calls this directly

Calls 3

joinMethod · 0.80
__init__Method · 0.45
formatMethod · 0.45

Tested by

no test coverage detected