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
620
statement
ref
function
if not isinstance(n.statement(future=True), nodes.ExceptHandler)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
621
statement
ref
function
or n.statement(future=True).parent_of(node)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
621
parent_of
ref
function
or n.statement(future=True).parent_of(node)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
627
_uncertain_nodes_in_except_blocks
ref
function
uncertain_nodes = self._uncertain_nodes_in_except_blocks(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
638
_uncertain_nodes_in_try_blocks_when_evaluating_finally_blocks
ref
function
self._uncertain_nodes_in_try_blocks_when_evaluating_finally_blocks(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
650
_uncertain_nodes_in_try_blocks_when_evaluating_except_blocks
ref
function
self._uncertain_nodes_in_try_blocks_when_evaluating_except_blocks(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
661
_uncertain_nodes_in_except_blocks
def
function
def _uncertain_nodes_in_except_blocks( found_nodes: list[nodes.NodeNG], node: nodes.NodeNG, node_statement: nodes.Statement, ) -> list[nodes.NodeNG]: """Return any nodes in ``found_nodes`` that should be treated as uncertain because they are in an except block. ""...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
671
statement
ref
function
other_node_statement = other_node.statement(future=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
673
get_node_first_ancestor_of_type
ref
function
closest_except_handler = utils.get_node_first_ancestor_of_type(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
679
parent_of
ref
function
if closest_except_handler.parent_of(node):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
693
parent_of
ref
function
and closest_try_except.parent.parent_of(node_statement)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
699
_defines_name_raises_or_returns
ref
function
NamesConsumer._defines_name_raises_or_returns(node.name, handler)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
704
_check_loop_finishes_via_except
ref
function
if NamesConsumer._check_loop_finishes_via_except(node, closest_try_except):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
712
_defines_name_raises_or_returns
def
function
def _defines_name_raises_or_returns( name: str, handler: nodes.ExceptHandler ) -> bool: """Return _True if some child of `handler` defines the name `name`, raises, or returns. """ def _define_raise_or_return(stmt: nodes.NodeNG) -> bool: if isinstance(stmt, (n...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
719
_define_raise_or_return
def
function
def _define_raise_or_return(stmt: nodes.NodeNG) -> bool: if isinstance(stmt, (nodes.Raise, nodes.Return)): return _True if isinstance(stmt, nodes.Assign): for target in stmt.targets: for elt in utils.get_all_elements(target): ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
724
get_all_elements
ref
function
for elt in utils.get_all_elements(target):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
745
get_children
ref
function
for stmt in handler.get_children():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
746
_define_raise_or_return
ref
function
if _define_raise_or_return(stmt):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
750
_define_raise_or_return
ref
function
_define_raise_or_return(nested_stmt)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
751
get_children
ref
function
for nested_stmt in stmt.get_children()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
757
_check_loop_finishes_via_except
def
function
def _check_loop_finishes_via_except( node: nodes.NodeNG, other_node_try_except: nodes.TryExcept ) -> bool: """Check for a case described in https://github.com/PyCQA/pylint/issues/5683. It consists of a specific control flow scenario where the only non-break exit from a loop cons...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
783
get_node_first_ancestor_of_type
ref
function
) = utils.get_node_first_ancestor_of_type(node, (nodes.For, nodes.While))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
787
parent_of
ref
function
else_statement is node or else_statement.parent_of(node)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
800
_try_in_loop_body
def
function
def _try_in_loop_body( other_node_try_except: nodes.TryExcept, loop: nodes.For | nodes.While ) -> bool: """Return _True if `other_node_try_except` is a descendant of `loop`.""" return any( loop_body_statement is other_node_try_except or...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
806
parent_of
ref
function
or loop_body_statement.parent_of(other_node_try_except)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
810
_try_in_loop_body
ref
function
if not _try_in_loop_body(other_node_try_except, closest_loop):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
811
node_ancestors
ref
function
for ancestor in closest_loop.node_ancestors():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
813
_try_in_loop_body
ref
function
if _try_in_loop_body(other_node_try_except, ancestor):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
820
_recursive_search_for_continue_before_break
ref
function
if NamesConsumer._recursive_search_for_continue_before_break(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
830
_recursive_search_for_continue_before_break
def
function
def _recursive_search_for_continue_before_break( stmt: nodes.Statement, break_stmt: nodes.Break ) -> bool: """Return _True if any Continue node can be found in descendants of `stmt` before encountering `break_stmt`, ignoring any nested loops. """ if stmt is break_stmt: ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
840
get_children
ref
function
for child in stmt.get_children():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
843
_recursive_search_for_continue_before_break
ref
function
if NamesConsumer._recursive_search_for_continue_before_break(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
850
_uncertain_nodes_in_try_blocks_when_evaluating_except_blocks
def
function
def _uncertain_nodes_in_try_blocks_when_evaluating_except_blocks( found_nodes: list[nodes.NodeNG], node_statement: nodes.Statement ) -> list[nodes.NodeNG]: """Return any nodes in ``found_nodes`` that should be treated as uncertain because they are in a try block and the ``node_statement`...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
857
get_node_first_ancestor_of_type
ref
function
closest_except_handler = utils.get_node_first_ancestor_of_type(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
863
statement
ref
function
other_node_statement = other_node.statement(future=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
871
get_node_first_ancestor_of_type_and_its_child
ref
function
) = utils.get_node_first_ancestor_of_type_and_its_child(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
887
node_ancestors
ref
function
in closest_except_handler.node_ancestors()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
896
_uncertain_nodes_in_try_blocks_when_evaluating_finally_blocks
def
function
def _uncertain_nodes_in_try_blocks_when_evaluating_finally_blocks( found_nodes: list[nodes.NodeNG], node_statement: nodes.Statement ) -> list[nodes.NodeNG]: uncertain_nodes: list[nodes.NodeNG] = [] ( closest_try_finally_ancestor, child_of_closest_try_finally_ances...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
903
get_node_first_ancestor_of_type_and_its_child
ref
function
) = utils.get_node_first_ancestor_of_type_and_its_child(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
914
statement
ref
function
other_node_statement = other_node.statement(future=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
918
get_node_first_ancestor_of_type_and_its_child
ref
function
) = utils.get_node_first_ancestor_of_type_and_its_child(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
937
parent_of
ref
function
or other_node_final_statement.parent_of(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
950
VariablesChecker
def
class
__init__ open leave_for visit_module leave_module visit_classdef leave_classdef visit_lambda leave_lambda visit_generatorexp leave_generatorexp visit_dictcomp leave_dictcomp visit_setcomp leave_setcomp visit_functiondef leave_functiondef visit_global visit_assignname visit_delname visit_name visit_excepthandler leave_e...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,066
is_message_enabled
ref
function
self._is_undefined_variable_enabled = self.linter.is_message_enabled(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,069
is_message_enabled
ref
function
self._is_undefined_loop_variable_enabled = self.linter.is_message_enabled(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,073
leave_for
def
function
def leave_for(self, node: nodes.For) -> None: self._store_type_annotation_names(node) def visit_module(self, node: nodes.Module) -> None: """Visit module : update consumption analysis variable checks globals doesn't overrides builtins. """ self._to_consume = [NamesConsum...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,074
_store_type_annotation_names
ref
function
self._store_type_annotation_names(node)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,076
visit_module
def
function
def visit_module(self, node: nodes.Module) -> None: """Visit module : update consumption analysis variable checks globals doesn't overrides builtins. """ self._to_consume = [NamesConsumer(node, "module")] self._postponed_evaluation_enabled = is_postponed_evaluation_enabled(no...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,080
NamesConsumer
ref
function
self._to_consume = [NamesConsumer(node, "module")]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,081
is_postponed_evaluation_enabled
ref
function
self._postponed_evaluation_enabled = is_postponed_evaluation_enabled(node)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,084
is_builtin
ref
function
if utils.is_builtin(name):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,085
_should_ignore_redefined_builtin
ref
function
if self._should_ignore_redefined_builtin(stmts[0]) or name == "__doc__":
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,087
add_message
ref
function
self.add_message("redefined-builtin", args=name, node=stmts[0])
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,089
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,099
leave_module
def
function
def leave_module(self, node: nodes.Module) -> None: """Leave module: check globals.""" assert len(self._to_consume) == 1 self._check_metaclasses(node) not_consumed = self._to_consume.pop().to_consume # attempt to check for __all__ if defined if "__all__" in node.loca...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,103
_check_metaclasses
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,107
_check_all
ref
function
self._check_all(node, not_consumed)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,110
_check_globals
ref
function
self._check_globals(not_consumed)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,116
_check_imports
ref
function
self._check_imports(not_consumed)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,118
visit_classdef
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,120
NamesConsumer
ref
class
__init__ __repr__ __iter__ to_consume consumed consumed_uncertain scope_type mark_as_consumed get_next_to_consume _uncertain_nodes_in_except_blocks _defines_name_raises_or_returns _check_loop_finishes_via_except _recursive_search_for_continue_before_break _uncertain_nodes_in_try_blocks_when_evaluating_except_blocks _un...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,122
leave_classdef
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,127
visit_lambda
def
function
def visit_lambda(self, node: nodes.Lambda) -> None: """Visit lambda: update consumption analysis variable.""" self._to_consume.append(NamesConsumer(node, "lambda")) def leave_lambda(self, _: nodes.Lambda) -> None: """Leave lambda: update consumption analysis variable.""" # do no...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,129
NamesConsumer
ref
function
self._to_consume.append(NamesConsumer(node, "lambda"))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,131
leave_lambda
def
function
def leave_lambda(self, _: nodes.Lambda) -> None: """Leave lambda: update consumption analysis variable.""" # do not check for not used locals here self._to_consume.pop() def visit_generatorexp(self, node: nodes.GeneratorExp) -> None: """Visit genexpr: update consumption analysis...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,136
visit_generatorexp
def
function
def visit_generatorexp(self, node: nodes.GeneratorExp) -> None: """Visit genexpr: update consumption analysis variable.""" self._to_consume.append(NamesConsumer(node, "comprehension")) def leave_generatorexp(self, _: nodes.GeneratorExp) -> None: """Leave genexpr: update consumption anal...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,138
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,140
leave_generatorexp
def
function
def leave_generatorexp(self, _: nodes.GeneratorExp) -> None: """Leave genexpr: update consumption analysis variable.""" # do not check for not used locals here self._to_consume.pop() def visit_dictcomp(self, node: nodes.DictComp) -> None: """Visit dictcomp: update consumption an...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,145
visit_dictcomp
def
function
def visit_dictcomp(self, node: nodes.DictComp) -> None: """Visit dictcomp: update consumption analysis variable.""" self._to_consume.append(NamesConsumer(node, "comprehension")) def leave_dictcomp(self, _: nodes.DictComp) -> None: """Leave dictcomp: update consumption analysis variable....
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,147
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,149
leave_dictcomp
def
function
def leave_dictcomp(self, _: nodes.DictComp) -> None: """Leave dictcomp: update consumption analysis variable.""" # do not check for not used locals here self._to_consume.pop() def visit_setcomp(self, node: nodes.SetComp) -> None: """Visit setcomp: update consumption analysis var...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,154
visit_setcomp
def
function
def visit_setcomp(self, node: nodes.SetComp) -> None: """Visit setcomp: update consumption analysis variable.""" self._to_consume.append(NamesConsumer(node, "comprehension")) def leave_setcomp(self, _: nodes.SetComp) -> None: """Leave setcomp: update consumption analysis variable.""" ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,156
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,158
leave_setcomp
def
function
def leave_setcomp(self, _: nodes.SetComp) -> None: """Leave setcomp: update consumption analysis variable.""" # do not check for not used locals here self._to_consume.pop() def visit_functiondef(self, node: nodes.FunctionDef) -> None: """Visit function: update consumption analys...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,163
visit_functiondef
def
function
def visit_functiondef(self, node: nodes.FunctionDef) -> None: """Visit function: update consumption analysis variable and check locals.""" self._to_consume.append(NamesConsumer(node, "function")) if not ( self.linter.is_message_enabled("redefined-outer-name") or self....
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,165
NamesConsumer
ref
function
self._to_consume.append(NamesConsumer(node, "function"))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,167
is_message_enabled
ref
function
self.linter.is_message_enabled("redefined-outer-name")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,168
is_message_enabled
ref
function
or self.linter.is_message_enabled("redefined-builtin")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,171
root
ref
function
globs = node.root().globals
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,186
as_string
ref
function
and definition.parent.test.as_string() in TYPING_TYPE_CHECKS_GUARDS
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,192
_is_name_ignored
ref
function
if not self._is_name_ignored(stmt, name):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,193
add_message
ref
function
self.add_message(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,198
is_builtin
ref
function
utils.is_builtin(name)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,199
_allowed_redefined_builtin
ref
function
and not self._allowed_redefined_builtin(name)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,200
_should_ignore_redefined_builtin
ref
function
and not self._should_ignore_redefined_builtin(stmt)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,203
add_message
ref
function
self.add_message("redefined-builtin", args=name, node=stmt)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,205
leave_functiondef
def
function
def leave_functiondef(self, node: nodes.FunctionDef) -> None: """Leave function: check function's locals are consumed.""" self._check_metaclasses(node) if node.type_comment_returns: self._store_type_annotation_node(node.type_comment_returns) if node.type_comment_args: ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,207
_check_metaclasses
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,210
_store_type_annotation_node
ref
function
self._store_type_annotation_node(node.type_comment_returns)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,213
_store_type_annotation_node
ref
function
self._store_type_annotation_node(argument_annotation)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,217
is_message_enabled
ref
function
self.linter.is_message_enabled("unused-variable")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,218
is_message_enabled
ref
function
or self.linter.is_message_enabled("possibly-unused-variable")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,219
is_message_enabled
ref
function
or self.linter.is_message_enabled("unused-argument")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,224
is_error
ref
function
if utils.is_error(node):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,228
is_method
ref
function
is_method = node.is_method()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,229
is_abstract
ref
function
if is_method and node.is_abstract():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,232
_flattened_scope_names
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,232
nodes_of_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,233
_flattened_scope_names
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/variables.py
pylint/checkers/variables.py
1,233
nodes_of_class
ref
class