diff options
author | Matt Clay <matt@mystile.com> | 2024-08-31 01:36:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-31 01:36:20 +0200 |
commit | 49490d92c371469ae19d98622c50d99f65ea4ee0 (patch) | |
tree | 117106694c5043454674de9e663b3ac44ad8efb3 | |
parent | Remove references to IRC or Google Groups (#83875) (diff) | |
download | ansible-49490d92c371469ae19d98622c50d99f65ea4ee0.tar.xz ansible-49490d92c371469ae19d98622c50d99f65ea4ee0.zip |
Update boilerplate sanity test (#83879)
The `annotations` future can now be imported as `_annotations`.
-rw-r--r-- | test/sanity/code-smell/boilerplate.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/sanity/code-smell/boilerplate.py b/test/sanity/code-smell/boilerplate.py index d0ab20d796..1f044faa84 100644 --- a/test/sanity/code-smell/boilerplate.py +++ b/test/sanity/code-smell/boilerplate.py @@ -17,7 +17,11 @@ def main(): invalid_future = [] for text in lines: - if text in (b'from __future__ import annotations', b'from __future__ import annotations # pragma: nocover'): + if text in ( + b'from __future__ import annotations', + b'from __future__ import annotations as _annotations', + b'from __future__ import annotations # pragma: nocover', + ): missing = False break |