MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / write_package

Function write_package

tests/test_detect_breaking_changes.py:53–58  ·  view source on GitHub ↗
(repo: Path, files: dict[str, str])

Source from the content-addressed store, hash-verified

51
52
53def write_package(repo: Path, files: dict[str, str]) -> None:
54 shutil.rmtree(repo / PACKAGE_DIR, ignore_errors=True)
55 for name, text in {"__init__.py": "", **files}.items():
56 path = repo / PACKAGE_DIR / name
57 path.parent.mkdir(parents=True, exist_ok=True)
58 path.write_text(text)
59
60
61def reported_names(repo: Path, *, baseline: dict[str, str], tip: dict[str, str]) -> list[str]:

Callers 1

reported_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected