MCPcopy Create free account
hub / github.com/mkdocstrings/griffe / _environ

Function _environ

scripts/make.py:33–40  ·  view source on GitHub ↗
(**kwargs: str)

Source from the content-addressed store, hash-verified

31
32@contextmanager
33def _environ(**kwargs: str) -> Iterator[None]:
34 original = dict(os.environ)
35 os.environ.update(kwargs)
36 try:
37 yield
38 finally:
39 os.environ.clear()
40 os.environ.update(original)
41
42
43def _uv_install(venv: Path) -> None:

Callers 3

_uv_installFunction · 0.85
_runFunction · 0.85
setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…