Closed pixeebot[bot] closed 9 months ago
This change may not be a priority right now, so I'll close it. If there was something I could have done better, please let me know!
You can also customize me to make sure I'm working with you in the way you want.
Many older codebases have
__future__
imports for forwards compatibility with features. As of this writing, all but one of those features is now stable in all currently supported versions of Python and so the imports are no longer needed. While such imports are harmless, they are also unnecessary and in most cases you probably just forgot to remove them.This codemod removes all such
__future__
imports, preserving only those that are still necessary for forwards compatibility.Our changes look like the following:
More reading
* [https://docs.python.org/3/library/__future__.html](https://docs.python.org/3/library/__future__.html)Powered by: pixeebot (codemod ID: pixee:python/remove-future-imports)