freebsd-ports/devel/py-flake8-future-annotations/pkg-descr
Matthew Seaman 5948bc8694 devel/py-flake8-future-annotations: new port
Verifies python 3.7+ files use from __future__ import annotations if a
type is used in the module that can be rewritten using PEP 563.

Pairs well with pyupgrade with the --py37-plus flag or higher, since
pyupgrade only replaces type annotations with the PEP 563 rules if
from __future__ import annotations is present.
2023-03-05 00:38:20 +00:00

6 lines
319 B
Text

Verifies python 3.7+ files use from __future__ import annotations if a
type is used in the module that can be rewritten using PEP 563.
Pairs well with pyupgrade with the --py37-plus flag or higher, since
pyupgrade only replaces type annotations with the PEP 563 rules if
from __future__ import annotations is present.