fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,309
_check_unused_arguments
ref
function
self._check_unused_arguments(name, node, stmt, argnames)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,330
_has_locals_call_after_node
ref
function
if _has_locals_call_after_node(stmt, node.scope()):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,330
scope
ref
function
if _has_locals_call_after_node(stmt, node.scope()):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,338
add_message
ref
function
self.add_message("unused-import", args=msg, node=stmt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,345
add_message
ref
function
self.add_message("unused-import", args=msg, node=stmt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,353
is_overload_stub
ref
function
if utils.is_overload_stub(node):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,358
nodes_of_class
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,362
add_message
ref
function
self.add_message(message_name, args=name, node=stmt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,364
_is_name_ignored
def
function
def _is_name_ignored(self, stmt, name): authorized_rgx = self.config.dummy_variables_rgx if ( isinstance(stmt, nodes.AssignName) and isinstance(stmt.parent, nodes.Arguments) or isinstance(stmt, nodes.Arguments) ): regex = self.config.ignored_ar...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,376
_check_unused_arguments
def
function
def _check_unused_arguments(self, name, node, stmt, argnames): is_method = node.is_method() klass = node.parent.frame(future=_True) if is_method and isinstance(klass, nodes.ClassDef): confidence = ( INFERENCE if utils.has_known_bases(klass) else INFERENCE_FAILURE ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,377
is_method
ref
function
is_method = node.is_method()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,378
frame
ref
function
klass = node.parent.frame(future=True)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,381
has_known_bases
ref
function
INFERENCE if utils.has_known_bases(klass) else INFERENCE_FAILURE
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,391
overridden_method
ref
function
overridden = overridden_method(klass, node.name)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,392
argnames
ref
function
if overridden is not None and name in overridden.argnames():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,406
is_registered_in_singledispatch_function
ref
function
if utils.is_registered_in_singledispatch_function(node):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,410
is_overload_stub
ref
function
if utils.is_overload_stub(node):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,414
is_protocol_class
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,417
add_message
ref
function
self.add_message("unused-argument", args=name, node=stmt, confidence=confidence)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,419
_check_late_binding_closure
def
function
def _check_late_binding_closure(self, node: nodes.Name) -> None: """Check whether node is a cell var that is assigned within a containing loop. Special cases where we don't care about the error: 1. When the node's function is immediately called, e.g. (lambda: i)() 2. When the node's...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,426
is_message_enabled
ref
function
if not self.linter.is_message_enabled("cell-var-from-loop"):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,429
frame
ref
function
node_scope = node.frame(future=True)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,433
is_default_argument
ref
function
if utils.is_default_argument(node, node_scope):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,434
frame
ref
function
node_scope = node_scope.parent.frame(future=True)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,443
lookup
ref
function
assign_scope, stmts = node.lookup(node.name)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,444
parent_of
ref
function
if not stmts or not assign_scope.parent_of(node_scope):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,447
is_comprehension
ref
function
if utils.is_comprehension(assign_scope):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,448
add_message
ref
function
self.add_message("cell-var-from-loop", node=node, args=node.name)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,462
parent_of
ref
function
and maybe_for.parent_of(node_scope)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,463
is_being_called
ref
function
and not utils.is_being_called(node_scope)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,465
statement
ref
function
and not isinstance(node_scope.statement(future=True), nodes.Return)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,467
add_message
ref
function
self.add_message("cell-var-from-loop", node=node, args=node.name)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,469
_should_ignore_redefined_builtin
def
function
def _should_ignore_redefined_builtin(self, stmt): if not isinstance(stmt, nodes.ImportFrom): return _False return stmt.modname in self.config.redefining_builtins_modules def _allowed_redefined_builtin(self, name): return name in self.config.allowed_redefined_builtins de...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,474
_allowed_redefined_builtin
def
function
def _allowed_redefined_builtin(self, name): return name in self.config.allowed_redefined_builtins def _has_homonym_in_upper_function_scope( self, node: nodes.Name, index: int ) -> bool: """Return whether there is a node with the same name in the to_consume dict of an upper s...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,477
_has_homonym_in_upper_function_scope
def
function
def _has_homonym_in_upper_function_scope( self, node: nodes.Name, index: int ) -> bool: """Return whether there is a node with the same name in the to_consume dict of an upper scope and if that scope is a function :param node: node to check for :param index: inde...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,495
_store_type_annotation_node
def
function
def _store_type_annotation_node(self, type_annotation): """Given a type annotation, store all the name nodes it refers to.""" if isinstance(type_annotation, nodes.Name): self._type_annotation_names.append(type_annotation.name) return if isinstance(type_annotation, no...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,502
_store_type_annotation_node
ref
function
self._store_type_annotation_node(type_annotation.expr)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,517
nodes_of_class
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,520
_store_type_annotation_names
def
function
def _store_type_annotation_names(self, node): type_annotation = node.type_annotation if not type_annotation: return self._store_type_annotation_node(node.type_annotation) def _check_self_cls_assign(self, node: nodes.Assign) -> None: """Check that self/cls don't get a...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,524
_store_type_annotation_node
ref
function
self._store_type_annotation_node(node.type_annotation)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,526
_check_self_cls_assign
def
function
def _check_self_cls_assign(self, node: nodes.Assign) -> None: """Check that self/cls don't get assigned.""" assign_names: Set[Optional[str]] = set() for target in node.targets: if isinstance(target, nodes.AssignName): assign_names.add(target.name) elif...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,536
scope
ref
function
scope = node.scope()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,541
scope
ref
function
scope = node.scope().parent.scope()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,541
scope
ref
function
scope = node.scope().parent.scope()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,545
is_method
ref
function
and scope.is_method()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,546
decoratornames
ref
function
and "builtins.staticmethod" not in scope.decoratornames()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,549
argnames
ref
function
argument_names = scope.argnames()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,554
add_message
ref
function
self.add_message("self-cls-assignment", node=node, args=(self_cls_name,))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,556
_check_unpacking
def
function
def _check_unpacking(self, inferred, node, targets): """Check for unbalanced tuple unpacking and unpacking non sequences. """ if utils.is_inside_abstract_class(node): return if utils.is_comprehension(node): return if inferred is astroid.Uninfer...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,560
is_inside_abstract_class
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,562
is_comprehension
ref
function
if utils.is_comprehension(node):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,575
_nodes_to_unpack
ref
function
values = self._nodes_to_unpack(inferred)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,581
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,585
_get_unpacking_extra_info
ref
function
_get_unpacking_extra_info(node, inferred),
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,591
is_iterable
ref
function
elif not utils.is_iterable(inferred):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,592
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,595
_get_unpacking_extra_info
ref
function
args=(_get_unpacking_extra_info(node, inferred),),
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,599
_nodes_to_unpack
def
function
def _nodes_to_unpack(node: nodes.NodeNG) -> Optional[List[nodes.NodeNG]]: """Return the list of values of the `Assign` node.""" if isinstance(node, (nodes.Tuple, nodes.List)): return node.itered() if isinstance(node, astroid.Instance) and any( ancestor.qname() == "typ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,602
itered
ref
function
return node.itered()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,604
qname
ref
function
ancestor.qname() == "typing.NamedTuple" for ancestor in node.ancestors()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,604
ancestors
ref
function
ancestor.qname() == "typing.NamedTuple" for ancestor in node.ancestors()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,609
_check_module_attrs
def
function
def _check_module_attrs(self, node, module, module_names): """Check that module_names (list of string) are accessible through the given module if the latest access name corresponds to a module, return it """ while module_names: name = module_names.pop(0) ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,620
infer
ref
function
module = next(module.getattr(name)[0].infer())
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,626
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,634
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,642
_check_all
def
function
def _check_all(self, node: nodes.Module, not_consumed): assigned = next(node.igetattr("__all__")) if assigned is astroid.Uninferable: return if not assigned.pytype() in {"builtins.list", "builtins.tuple"}: line, col = assigned.tolineno, assigned.col_offset ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,643
igetattr
ref
function
assigned = next(node.igetattr("__all__"))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,646
pytype
ref
function
if not assigned.pytype() in {"builtins.list", "builtins.tuple"}:
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,648
add_message
ref
function
self.add_message("invalid-all-format", line=line, col_offset=col, node=node)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,652
infer
ref
function
elt_name = next(elt.infer())
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,663
add_message
ref
function
self.add_message("invalid-all-object", args=elt.as_string(), node=elt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,663
as_string
ref
function
self.add_message("invalid-all-object", args=elt.as_string(), node=elt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,674
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,678
splitext
ref
function
basename = os.path.splitext(node.file)[0]
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,679
basename
ref
function
if os.path.basename(basename) == "__init__":
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,682
file_from_modpath
ref
function
astroid.modutils.file_from_modpath(name.split("."))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,684
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,693
_check_globals
def
function
def _check_globals(self, not_consumed): if self._allow_global_unused_variables: return for name, node_lst in not_consumed.items(): for node in node_lst: self.add_message("unused-variable", args=(name,), node=node) def _check_imports(self, not_consumed): ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,698
add_message
ref
function
self.add_message("unused-variable", args=(name,), node=node)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,700
_check_imports
def
function
def _check_imports(self, not_consumed): local_names = _fix_dot_imports(not_consumed) checked = set() unused_wildcard_imports: DefaultDict[ Tuple[str, nodes.ImportFrom], List[str] ] = collections.defaultdict(list) for name, stmt in local_names: for impo...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,701
_fix_dot_imports
ref
function
local_names = _fix_dot_imports(not_consumed)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,742
_is_type_checking_import
ref
function
if not _is_type_checking_import(stmt):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,743
add_message
ref
function
self.add_message("unused-import", args=msg, node=stmt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,750
_is_from_future_import
ref
function
if _is_from_future_import(stmt, name):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,766
_is_type_checking_import
ref
function
if not _is_type_checking_import(stmt):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,767
add_message
ref
function
self.add_message("unused-import", args=msg, node=stmt)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,777
add_message
ref
function
self.add_message(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,782
_check_metaclasses
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,786
get_children
ref
function
for child_node in node.get_children():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,788
_check_classdef_metaclasses
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,795
_check_classdef_metaclasses
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,801
metaclass
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,811
root
ref
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,835
is_builtin
ref
function
or utils.is_builtin(name)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,839
add_message
ref
function
self.add_message("undefined-variable", node=klass, args=(name,))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,844
register
def
function
def register(linter: "PyLinter") -> None: linter.register_checker(VariablesChecker(linter))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,845
register_checker
ref
function
linter.register_checker(VariablesChecker(linter))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
2,845
VariablesChecker
ref
function
linter.register_checker(VariablesChecker(linter))
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/config/__init__.py
pylint/config/__init__.py
66
expanduser
ref
function
USER_HOME = os.path.expanduser("~")
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/config/__init__.py
pylint/config/__init__.py
70
dirname
ref
function
USER_HOME = os.path.dirname(PYLINT_HOME)