Update boilerplate sanity test (#83879)

The `annotations` future can now be imported as `_annotations`.
pull/83880/head
Matt Clay 3 months ago committed by GitHub
parent 8b8a249d26
commit 49490d92c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -17,7 +17,11 @@ def main():
invalid_future = [] invalid_future = []
for text in lines: 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 missing = False
break break

Loading…
Cancel
Save