summaryrefslogtreecommitdiffstats
path: root/pre_commit/envcontext.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-09 06:23:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-10-09 06:23:34 +0000
commite7e717b1b64e29ff72c6ab4bf128bdb82f658089 (patch)
tree36d4d88c481a8dca5d31b7ef30ba8f4122a9a95f /pre_commit/envcontext.py
parentReleasing debian version 3.8.0-1. (diff)
downloadpre-commit-e7e717b1b64e29ff72c6ab4bf128bdb82f658089.tar.xz
pre-commit-e7e717b1b64e29ff72c6ab4bf128bdb82f658089.zip
Merging upstream version 4.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/envcontext.py')
-rw-r--r--pre_commit/envcontext.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pre_commit/envcontext.py b/pre_commit/envcontext.py
index 1f816ce..d4d2411 100644
--- a/pre_commit/envcontext.py
+++ b/pre_commit/envcontext.py
@@ -33,7 +33,7 @@ def format_env(parts: SubstitutionT, env: MutableMapping[str, str]) -> str:
def envcontext(
patch: PatchesT,
_env: MutableMapping[str, str] | None = None,
-) -> Generator[None, None, None]:
+) -> Generator[None]:
"""In this context, `os.environ` is modified according to `patch`.
`patch` is an iterable of 2-tuples (key, value):