Back to Intellij Community

PyFromFutureImportInspection

python/python-psi-impl/resources/inspectionDescriptions/PyFromFutureImportInspection.html

2025.3-rc-2279 B
Original Source

Reports from __future__ import statements that are used not at the beginning of a file.

Example:

a = 1
from __future__ import print_function
print()

When the quick-fix is applied, the code changes to:

from __future__ import print_function

a = 1
print()