44from abc import ABC , abstractmethod
55from collections .abc import Mapping
66from pathlib import Path
7- from typing import Any , Callable , Union
7+ from typing import Callable , Union
88
99import pytest
1010
@@ -198,7 +198,7 @@ def BIND(v: str, env: Env) -> bool:
198198
199199
200200@CRT_PARAMS
201- def test_basic (crt_params : CheckHolder , tmp_path : Path , monkeypatch : Any ) -> None :
201+ def test_basic (crt_params : CheckHolder , tmp_path : Path , monkeypatch : pytest . MonkeyPatch ) -> None :
202202 """Test that basic env vars (only) show up."""
203203 tmp_prefix = str (tmp_path / "canary" )
204204 extra_env = {
@@ -218,7 +218,9 @@ def test_basic(crt_params: CheckHolder, tmp_path: Path, monkeypatch: Any) -> Non
218218
219219
220220@CRT_PARAMS
221- def test_preserve_single (crt_params : CheckHolder , tmp_path : Path , monkeypatch : Any ) -> None :
221+ def test_preserve_single (
222+ crt_params : CheckHolder , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
223+ ) -> None :
222224 """Test that preserving a single env var works."""
223225 tmp_prefix = str (tmp_path / "canary" )
224226 extra_env = {
@@ -242,7 +244,9 @@ def test_preserve_single(crt_params: CheckHolder, tmp_path: Path, monkeypatch: A
242244
243245
244246@CRT_PARAMS
245- def test_preserve_all (crt_params : CheckHolder , tmp_path : Path , monkeypatch : Any ) -> None :
247+ def test_preserve_all (
248+ crt_params : CheckHolder , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
249+ ) -> None :
246250 """Test that preserving all works."""
247251 tmp_prefix = str (tmp_path / "canary" )
248252 extra_env = {
0 commit comments