summaryrefslogtreecommitdiffstats
path: root/test/lib/ansible_test/_internal/executor.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_internal/executor.py')
-rw-r--r--test/lib/ansible_test/_internal/executor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/ansible_test/_internal/executor.py b/test/lib/ansible_test/_internal/executor.py
index 9a9b08984d..b079df9f56 100644
--- a/test/lib/ansible_test/_internal/executor.py
+++ b/test/lib/ansible_test/_internal/executor.py
@@ -33,7 +33,7 @@ from .provisioning import (
)
-def get_changes_filter(args: TestConfig) -> t.List[str]:
+def get_changes_filter(args: TestConfig) -> list[str]:
"""Return a list of targets which should be tested based on the changes made."""
paths = detect_changes(args)
@@ -57,7 +57,7 @@ def get_changes_filter(args: TestConfig) -> t.List[str]:
return args.metadata.change_description.targets
-def detect_changes(args: TestConfig) -> t.Optional[t.List[str]]:
+def detect_changes(args: TestConfig) -> t.Optional[list[str]]:
"""Return a list of changed paths."""
if args.changed:
paths = get_ci_provider().detect_changes(args)
@@ -93,7 +93,7 @@ class NoTestsForChanges(ApplicationWarning):
class Delegate(Exception):
"""Trigger command delegation."""
- def __init__(self, host_state: HostState, exclude: t.List[str] = None, require: t.List[str] = None) -> None:
+ def __init__(self, host_state: HostState, exclude: list[str] = None, require: list[str] = None) -> None:
super().__init__()
self.host_state = host_state
@@ -103,7 +103,7 @@ class Delegate(Exception):
class ListTargets(Exception):
"""List integration test targets instead of executing them."""
- def __init__(self, target_names: t.List[str]) -> None:
+ def __init__(self, target_names: list[str]) -> None:
super().__init__()
self.target_names = target_names