MCPcopy Index your code
hub / github.com/pyinvoke/invoke / _check_default_collision

Method _check_default_collision

invoke/collection.py:326–329  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

324 self.default = name
325
326 def _check_default_collision(self, name: str) -> None:
327 if self.default:
328 msg = "'{}' cannot be the default because '{}' already is!"
329 raise ValueError(msg.format(name, self.default))
330
331 def _split_path(self, path: str) -> Tuple[str, str]:
332 """

Callers 2

add_taskMethod · 0.95
add_collectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected