diff options
author | Matt Clay <matt@mystile.com> | 2023-01-24 01:56:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 01:56:07 +0100 |
commit | c9f20aedc04088f10b864b8f976688384abd50de (patch) | |
tree | 2183570b61bdfc4e8d30af44d597c4833a15744e /test/lib/ansible_test/_internal/metadata.py | |
parent | ansible-test - Remove obsolete DirectoryTarget. (diff) | |
download | ansible-c9f20aedc04088f10b864b8f976688384abd50de.tar.xz ansible-c9f20aedc04088f10b864b8f976688384abd50de.zip |
ansible-test - Fix various type hinting issues. (#79798)
* 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.
Diffstat (limited to 'test/lib/ansible_test/_internal/metadata.py')
-rw-r--r-- | test/lib/ansible_test/_internal/metadata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/ansible_test/_internal/metadata.py b/test/lib/ansible_test/_internal/metadata.py index e969f029ca..94bbc34a60 100644 --- a/test/lib/ansible_test/_internal/metadata.py +++ b/test/lib/ansible_test/_internal/metadata.py @@ -19,7 +19,7 @@ from .diff import ( class Metadata: """Metadata object for passing data to delegated tests.""" - def __init__(self): + def __init__(self) -> None: """Initialize metadata.""" self.changes: dict[str, tuple[tuple[int, int], ...]] = {} self.cloud_config: t.Optional[dict[str, dict[str, t.Union[int, str, bool]]]] = None @@ -82,7 +82,7 @@ class Metadata: class ChangeDescription: """Description of changes.""" - def __init__(self): + def __init__(self) -> None: self.command: str = '' self.changed_paths: list[str] = [] self.deleted_paths: list[str] = [] |