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/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,236 | nodes_of_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,238 | _find_assigned_names_recursive | ref | function | self._find_assigned_names_recursive(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,243 | _check_is_unused | ref | function | self._check_is_unused(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,255 | only_required_for_messages | ref | function | @utils.only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,262 | visit_global | def | function | def visit_global(self, node: nodes.Global) -> None:
"""Check names imported exists in the global scope."""
frame = node.frame(future=_True)
if isinstance(frame, nodes.Module):
self.add_message("global-at-module-level", node=node)
return
module = frame.root()
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,264 | frame | ref | function | frame = node.frame(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,266 | add_message | ref | function | self.add_message("global-at-module-level", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,269 | root | ref | function | module = frame.root()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,271 | scope | ref | function | locals_ = node.scope().locals
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,283 | is_reassigned_after_current | ref | function | not utils.is_reassigned_after_current(node, name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,284 | is_deleted_after_current | ref | function | and not utils.is_deleted_after_current(node, name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,287 | add_message | ref | function | self.add_message("global-variable-not-assigned", args=name, node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,296 | add_message | ref | function | self.add_message("redefined-builtin", args=name, node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,298 | frame | ref | function | if anode.frame(future=True) is module:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,310 | add_message | ref | function | self.add_message("global-variable-undefined", args=name, node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,314 | add_message | ref | function | self.add_message("global-statement", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,316 | visit_assignname | def | function | def visit_assignname(self, node: nodes.AssignName) -> None:
if isinstance(node.assign_type(), nodes.AugAssign):
self.visit_name(node)
def visit_delname(self, node: nodes.DelName) -> None:
self.visit_name(node)
def visit_name(self, node: nodes.Name) -> None:
"""Don't add... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,317 | assign_type | ref | function | if isinstance(node.assign_type(), nodes.AugAssign):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,318 | visit_name | ref | function | self.visit_name(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,320 | visit_delname | def | function | def visit_delname(self, node: nodes.DelName) -> None:
self.visit_name(node)
def visit_name(self, node: nodes.Name) -> None:
"""Don't add the 'utils.only_required_for_messages' decorator here!
It's important that all 'Name' nodes are visited, otherwise the
'NamesConsumers' won't... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,321 | visit_name | ref | function | self.visit_name(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,323 | visit_name | def | function | def visit_name(self, node: nodes.Name) -> None:
"""Don't add the 'utils.only_required_for_messages' decorator here!
It's important that all 'Name' nodes are visited, otherwise the
'NamesConsumers' won't be correct.
"""
stmt = node.statement(future=_True)
if stmt.from... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,329 | statement | ref | function | stmt = node.statement(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,332 | root | ref | function | assert not stmt.root().file.endswith(".py")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,335 | _undefined_and_used_before_checker | ref | function | self._undefined_and_used_before_checker(node, stmt)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,337 | _loopvar_name | ref | function | self._loopvar_name(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,339 | only_required_for_messages | ref | function | @utils.only_required_for_messages("redefined-outer-name")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,340 | visit_excepthandler | def | function | def visit_excepthandler(self, node: nodes.ExceptHandler) -> None:
if not node.name or not isinstance(node.name, nodes.AssignName):
return
for outer_except, outer_except_assign_name in self._except_handler_names_queue:
if node.name.name == outer_except_assign_name.name:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,346 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,355 | only_required_for_messages | ref | function | @utils.only_required_for_messages("redefined-outer-name")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,356 | leave_excepthandler | def | function | def leave_excepthandler(self, node: nodes.ExceptHandler) -> None:
if not node.name or not isinstance(node.name, nodes.AssignName):
return
self._except_handler_names_queue.pop()
def _undefined_and_used_before_checker(
self, node: nodes.Name, stmt: nodes.NodeNG
) -> None:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,361 | _undefined_and_used_before_checker | def | function | def _undefined_and_used_before_checker(
self, node: nodes.Name, stmt: nodes.NodeNG
) -> None:
frame = stmt.scope()
start_index = len(self._to_consume) - 1
# iterates through parent scopes, from the inner to the outer
base_scope_type = self._to_consume[start_index].scope_... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,364 | scope | ref | function | frame = stmt.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,374 | _should_node_be_skipped | ref | function | if self._should_node_be_skipped(node, current_consumer, i == start_index):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,377 | _check_consumer | ref | function | action, nodes_to_consume = self._check_consumer(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,386 | mark_as_consumed | ref | function | current_consumer.mark_as_consumed(node.name, nodes_to_consume)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,398 | is_builtin | ref | function | or utils.is_builtin(node.name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,403 | is_method | ref | function | and frame.is_method()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,406 | node_ignores_exception | ref | function | and not utils.node_ignores_exception(node, NameError)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,408 | add_message | ref | function | self.add_message("undefined-variable", args=node.name, node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,410 | _should_node_be_skipped | def | function | def _should_node_be_skipped(
self, node: nodes.Name, consumer: NamesConsumer, is_start_index: bool
) -> bool:
"""Tests a consumer and node for various conditions in which the node
shouldn't be checked for the undefined-variable and used-before-assignment checks.
"""
if co... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,423 | is_ancestor_name | ref | function | if utils.is_ancestor_name(consumer.node, node) or (
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,424 | _ignore_class_scope | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,434 | _defined_in_function_definition | ref | function | elif consumer.scope_type == "function" and self._defined_in_function_definition(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,442 | is_default_argument | ref | function | elif consumer.scope_type == "lambda" and utils.is_default_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,449 | _find_assigned_names_recursive | def | function | def _find_assigned_names_recursive(
self,
target: nodes.AssignName | nodes.BaseContainer,
target_names: list[str],
) -> None:
"""Update `target_names` in place with the names of assignment
targets, recursively (to account for nested assignments).
"""
if is... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,461 | _find_assigned_names_recursive | ref | function | self._find_assigned_names_recursive(elt, target_names)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,464 | _check_consumer | def | function | def _check_consumer(
self,
node: nodes.Name,
stmt: nodes.NodeNG,
frame: nodes.LocalsDictNodeNG,
current_consumer: NamesConsumer,
base_scope_type: Any,
) -> tuple[VariableVisitConsumerAction, list[nodes.NodeNG] | None]:
"""Checks a consumer for conditions t... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,478 | is_func_decorator | ref | function | if utils.is_func_decorator(current_consumer.node) or not isinstance(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,481 | _check_late_binding_closure | ref | function | self._check_late_binding_closure(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,482 | _loopvar_name | ref | function | self._loopvar_name(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,485 | get_next_to_consume | ref | function | found_nodes = current_consumer.get_next_to_consume(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,493 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,506 | _check_late_binding_closure | ref | function | self._check_late_binding_closure(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,508 | assign_parent | ref | function | defnode = utils.assign_parent(found_nodes[0])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,509 | statement | ref | function | defstmt = defnode.statement(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,510 | frame | ref | function | defframe = defstmt.frame(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,515 | parent_of | ref | function | and defframe.parent_of(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,522 | get_node_first_ancestor_of_type | ref | function | and utils.get_node_first_ancestor_of_type(node, nodes.Lambda)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,524 | is_default_argument | ref | function | not utils.is_default_argument(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,525 | scope | ref | function | or node.scope().parent.scope() is not defframe
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,525 | scope | ref | function | or node.scope().parent.scope() is not defframe
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,551 | _is_variable_violation | ref | function | ) = self._is_variable_violation(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,567 | is_defined_before | ref | function | and not utils.is_defined_before(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,568 | are_exclusive | ref | function | and not astroid.are_exclusive(stmt, defstmt, ("NameError",))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,581 | node_ignores_exception | ref | function | if not utils.node_ignores_exception(node, NameError):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,594 | root | ref | function | and node.name in node.root().locals
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,608 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,631 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,638 | _is_only_type_assignment | ref | function | elif self._is_only_type_assignment(node, defstmt):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,639 | scope | ref | function | if node.scope().locals.get(node.name):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,640 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,644 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,650 | _is_first_level_self_reference | ref | function | return self._is_first_level_self_reference(node, defstmt, found_nodes)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,654 | _is_never_evaluated | ref | function | if self._is_never_evaluated(defnode, defnode.parent):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,655 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,665 | only_required_for_messages | ref | function | @utils.only_required_for_messages("no-name-in-module")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,666 | visit_import | def | function | def visit_import(self, node: nodes.Import) -> None:
"""Check modules attribute accesses."""
if not self._analyse_fallback_blocks and utils.is_from_fallback_block(node):
# No need to verify this, since ImportError is already
# handled by the client code.
return
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,668 | is_from_fallback_block | ref | function | if not self._analyse_fallback_blocks and utils.is_from_fallback_block(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,672 | is_node_in_guarded_import_block | ref | function | if utils.is_node_in_guarded_import_block(node) is True:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,680 | _infer_name_module | ref | function | module = next(_infer_name_module(node, parts[0]))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,685 | _check_module_attrs | ref | function | self._check_module_attrs(node, module, parts[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,687 | only_required_for_messages | ref | function | @utils.only_required_for_messages("no-name-in-module")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,688 | visit_importfrom | def | function | def visit_importfrom(self, node: nodes.ImportFrom) -> None:
"""Check modules attribute accesses."""
if not self._analyse_fallback_blocks and utils.is_from_fallback_block(node):
# No need to verify this, since ImportError is already
# handled by the client code.
re... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,690 | is_from_fallback_block | ref | function | if not self._analyse_fallback_blocks and utils.is_from_fallback_block(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,694 | is_node_in_guarded_import_block | ref | function | if utils.is_node_in_guarded_import_block(node) is True:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,701 | do_import_module | ref | function | module = node.do_import_module(name_parts[0])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,704 | _check_module_attrs | ref | function | module = self._check_module_attrs(node, module, name_parts[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,710 | _check_module_attrs | ref | function | self._check_module_attrs(node, module, name.split("."))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,712 | only_required_for_messages | ref | function | @utils.only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,715 | visit_assign | def | function | def visit_assign(self, node: nodes.Assign) -> None:
"""Check unbalanced tuple unpacking for assignments and unpacking
non-sequences as well as in case self/cls get assigned.
"""
self._check_self_cls_assign(node)
if not isinstance(node.targets[0], (nodes.Tuple, nodes.List)):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,719 | _check_self_cls_assign | ref | function | self._check_self_cls_assign(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,723 | itered | ref | function | targets = node.targets[0].itered()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,725 | safe_infer | ref | function | inferred = utils.safe_infer(node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,727 | _check_unpacking | ref | function | self._check_unpacking(inferred, node, targets)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,732 | visit_listcomp | def | function | def visit_listcomp(self, node: nodes.ListComp) -> None:
"""Visit listcomp: update consumption analysis variable."""
self._to_consume.append(NamesConsumer(node, "comprehension"))
def leave_listcomp(self, _: nodes.ListComp) -> None:
"""Leave listcomp: update consumption analysis variable.... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,734 | NamesConsumer | ref | function | self._to_consume.append(NamesConsumer(node, "comprehension"))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,736 | leave_listcomp | def | function | def leave_listcomp(self, _: nodes.ListComp) -> None:
"""Leave listcomp: update consumption analysis variable."""
# do not check for not used locals here
self._to_consume.pop()
def leave_assign(self, node: nodes.Assign) -> None:
self._store_type_annotation_names(node)
def le... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,741 | leave_assign | def | function | def leave_assign(self, node: nodes.Assign) -> None:
self._store_type_annotation_names(node)
def leave_with(self, node: nodes.With) -> None:
self._store_type_annotation_names(node)
def visit_arguments(self, node: nodes.Arguments) -> None:
for annotation in node.type_comment_args:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py | pylint/checkers/variables.py | 1,742 | _store_type_annotation_names | ref | function | self._store_type_annotation_names(node)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.