diff options
author | Matt Clay <matt@mystile.com> | 2022-02-28 23:37:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 23:37:09 +0100 |
commit | a06fa496d3f837cca3c437ab6e9858525633d147 (patch) | |
tree | 16a99050f8af0e37c2d6d93d97cfd4e47bebd9ec /test/lib/ansible_test/_internal/test.py | |
parent | add accessibility guidelines to docs style guide (#77145) (diff) | |
download | ansible-a06fa496d3f837cca3c437ab6e9858525633d147.tar.xz ansible-a06fa496d3f837cca3c437ab6e9858525633d147.zip |
ansible-test - Code cleanup and refactoring. (#77169)
* Remove unnecessary PyCharm ignores.
* Ignore intentional undefined attribute usage.
* Add missing type hints. Fix existing type hints.
* Fix docstrings and comments.
* Use function to register completion handler.
* Pass strings to display functions.
* Fix CompositeAction handling of dest argument.
* Use consistent types in expressions/assignments.
* Use custom function to keep linters happy.
* Add missing raise for custom exception.
* Clean up key/value type handling in cloud plugins.
* Use dataclass instead of dict for results.
* Add custom type_guard function to check lists.
* Ignore return type that can't be checked (yet).
* Avoid changing types on local variables.
Diffstat (limited to 'test/lib/ansible_test/_internal/test.py')
-rw-r--r-- | test/lib/ansible_test/_internal/test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/ansible_test/_internal/test.py b/test/lib/ansible_test/_internal/test.py index b67addc3ec..3e149b15bf 100644 --- a/test/lib/ansible_test/_internal/test.py +++ b/test/lib/ansible_test/_internal/test.py @@ -219,7 +219,7 @@ class TestFailure(TestResult): command, # type: str test, # type: str python_version=None, # type: t.Optional[str] - messages=None, # type: t.Optional[t.List[TestMessage]] + messages=None, # type: t.Optional[t.Sequence[TestMessage]] summary=None, # type: t.Optional[str] ): super().__init__(command, test, python_version) |