Method: pylint.checkers.variables.VariablesChecker._should_ignore_redefined_builtin
Calls: 28, Exceptions: 0, Paths: 2Back
Path 1: 21 calls (0.75)
AssignName (17) FunctionDef (3) AsyncFunctionDef (1)
False (21)
1def _should_ignore_redefined_builtin(self, stmt: nodes.NodeNG) -> bool:
2 if not isinstance(stmt, nodes.ImportFrom):
3 return False
4 return stmt.modname in self.linter.config.redefining_builtins_modules
Path 2: 7 calls (0.25)
ImportFrom (7)
False (6) True (1)
1def _should_ignore_redefined_builtin(self, stmt: nodes.NodeNG) -> bool:
2 if not isinstance(stmt, nodes.ImportFrom):
3 return False
4 return stmt.modname in self.linter.config.redefining_builtins_modules