summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2024-08-31 01:36:20 +0200
committerGitHub <noreply@github.com>2024-08-31 01:36:20 +0200
commit49490d92c371469ae19d98622c50d99f65ea4ee0 (patch)
tree117106694c5043454674de9e663b3ac44ad8efb3
parentRemove references to IRC or Google Groups (#83875) (diff)
downloadansible-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.py6
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