You have several options:
- add variable names to additional-builtins
additional-builtins:
List of additional names supposed to be defined in builtins. Remember that you should avoid to define new builtins when possible.
- add
# pylint: disable=E0602
comment on top of the file to disableundefined-variable
check in the file - add
# pylint: disable=E0602
comment in the code where the variable is used - run pylint with
--disable-msg=E0602
option
Also see: