add type annotations

This commit is contained in:
Thomas Grainger 2023-10-19 18:29:11 +01:00
parent ff12e083c5
commit 4821a41967
No known key found for this signature in database
GPG Key ID: DDA48B5C47FBC8C8
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
import sys
import textwrap
from pathlib import Path
import pytest
from _pytest.monkeypatch import MonkeyPatch
from _pytest.pytester import Pytester
from _pytest.runner import runtestprotocol
from _pytest.skipping import evaluate_skip_marks
@ -1437,7 +1439,7 @@ def test_importorskip_module_not_found() -> None:
def test_importorskip_module_not_found_raises_on_import_error(
monkeypatch, tmp_path
monkeypatch: MonkeyPatch, tmp_path: Path
) -> None:
on_path = tmp_path / "on_path"
on_path.mkdir()