[Python3][pylint]W0622:Redefining built-in 'XXXX'

組み込み定義XXXXを再定義しています。

エラー例

pythonで定義されている組み込み関数等を上書きしているために発生します。
dir = './home/temp'
print(dir)

解決方法

変数名を変更します。
dirName = './home/temp'
print(dirName)

組み込み関数一覧

abs() dict() help() min() setattr()
all() dir() hex() next() slice()
any() divmod() id() object() sorted()
ascii() enumerate() input() oct() staticmethod()
bin() eval() int() open() str()
bool() exec() isinstance() ord() sum()
bytearray() filter() issubclass() pow() super()
bytes() float() iter() print() tuple()
callable() format() len() property() type()
chr() frozenset() list() range() vars()
classmethod() getattr() locals() repr() zip()
compile() globals() map() reversed() __import__()
complex() hasattr() max() round()
delattr() hash() memoryview() set()

検証環境

関連ページ