Inspectopedia
 
2024.3

Improper position of from __future__ import

Warning
New
Last modified: 03 December 2024

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

Example:

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