diff options
Diffstat (limited to 'checkers/variables.py')
-rw-r--r-- | checkers/variables.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/variables.py b/checkers/variables.py index 19ccd56..40186c3 100644 --- a/checkers/variables.py +++ b/checkers/variables.py @@ -389,7 +389,7 @@ builtins. Remember that you should avoid to define new builtins when possible.' else: # we have not found the name, if it isn't a builtin, that's an # undefined name ! - if not self._is_builtin(name): + if not (name in astng.Module.scope_attrs or self._is_builtin(name)): self.add_message('E0602', args=name, node=node) def visit_import(self, node): |