diff options
author | Matt Clay <matt@mystile.com> | 2023-02-10 14:56:16 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 14:56:16 -0800 |
commit | 7027806a770ed51e97193743101925995fa7abaf (patch) | |
tree | d4f6edbe892f3928316bf681947927cfe98a80e1 /test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py | |
parent | 6d53f61f9e8568c314d86d6ee53b8d105c143716 (diff) | |
download | ansible-7027806a770ed51e97193743101925995fa7abaf.tar.gz |
[stable-2.14] ansible-test - Fix various type hinting issues. (#79798) (#79976)
* ansible-test - Add missing type hints.
* ansible-test - Remove redundant type hints.
* ansible-test - Fix return type annotations.
* ansible-test - Add assert, casts to assist mypy.
* ansible-test - Fix incorrect type hints.
* ansible-test - Remove no-op code.
* ansible-test - Fix incorrect types.
* ansible-test - Fix method signature mismatch.
(cherry picked from commit c9f20aedc04088f10b864b8f976688384abd50de)
Diffstat (limited to 'test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py')
-rw-r--r-- | test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py b/test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py index 5811dedd24..3fcab1c763 100644 --- a/test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py +++ b/test/lib/ansible_test/_internal/commands/sanity/integration_aliases.py @@ -104,7 +104,7 @@ class IntegrationAliasesTest(SanitySingleVersion): ansible_only = True - def __init__(self): + def __init__(self) -> None: super().__init__() self._ci_config: dict[str, t.Any] = {} @@ -307,10 +307,8 @@ class IntegrationAliasesTest(SanitySingleVersion): return messages - def check_windows_targets(self): - """ - :rtype: list[SanityMessage] - """ + def check_windows_targets(self) -> list[SanityMessage]: + """Check Windows integration test targets and return messages with any issues found.""" windows_targets = tuple(walk_windows_integration_targets()) messages = [] |