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

Function _get_path_func

dvc/_debug.py:161–167  ·  view source on GitHub ↗
(tool: str, ext: str)

Source from the content-addressed store, hash-verified

159
160
161def _get_path_func(tool: str, ext: str):
162 fmt = f"{tool}.dvc-{{now:%Y%m%d}}_{{now:%H%M%S}}.{ext}"
163
164 def func(now: Optional["datetime"] = None) -> str:
165 return fmt.format(now=now or datetime.now()) # noqa: DTZ005
166
167 return func
168
169
170@contextmanager

Callers 1

debugtoolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected