Skip to content

Commit 370f477

Browse files
committed
adjust types for Pytest 8.x; retaining compatability with Pytest 7.x
1 parent dfacef5 commit 370f477

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cwltest/plugin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from _pytest.config import PytestPluginManager
3434
from _pytest.config.argparsing import Parser as PytestParser
3535
from _pytest.nodes import Node
36+
from pluggy import HookCaller
3637

3738

3839
class TestRunner(Protocol):
@@ -58,7 +59,7 @@ def _get_comma_separated_option(config: "Config", name: str) -> List[str]:
5859
def _run_test_hook_or_plain(
5960
test: Dict[str, str],
6061
config: utils.CWLTestConfig,
61-
hook: TestRunner,
62+
hook: "HookCaller",
6263
) -> utils.TestResult:
6364
"""Run tests using a provided pytest_cwl_execute_test hook or the --cwl-runner."""
6465
processfile, jobfile = utils.prepare_test_paths(test, config.basedir)

0 commit comments

Comments
 (0)