Don't replace built-in objects
examples/patterns/replace_print.py
import sys print = 'hello' sys.stdout.write(print) sys.stdout.write('\n')
pip install flake8-builtins flake8 --ignore= replace_print.py replace_print.py:3:1: A001 "print" is a python builtin and is being shadowed, consider renaming the variable