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/async.py | pylint/checkers/async.py | 76 | decorated_with | ref | function | if decorated_with(inferred.parent, self._async_generators):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 86 | has_known_bases | ref | function | if not checker_utils.has_known_bases(inferred):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 89 | match | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 95 | add_message | ref | function | self.add_message(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 100 | register | def | function | def register(linter: "PyLinter") -> None:
linter.register_checker(AsyncChecker(linter))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 101 | register_checker | ref | function | linter.register_checker(AsyncChecker(linter))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/async.py | pylint/checkers/async.py | 101 | AsyncChecker | ref | function | linter.register_checker(AsyncChecker(linter))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 102 | NamingStyle | def | class | get_regex |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 117 | get_regex | def | function | def get_regex(cls, name_type):
return {
"module": cls.MOD_NAME_RGX,
"const": cls.CONST_NAME_RGX,
"class": cls.CLASS_NAME_RGX,
"function": cls.DEFAULT_NAME_RGX,
"method": cls.DEFAULT_NAME_RGX,
"attr": cls.DEFAULT_NAME_RGX,
"a... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 133 | SnakeCaseStyle | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 146 | CamelCaseStyle | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 157 | PascalCaseStyle | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 168 | UpperCaseStyle | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 179 | AnyStyle | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 232 | _redefines_import | def | function | def _redefines_import(node):
"""Detect that the given node (AssignName) is inside an
exception handler and redefines an import from the tryexcept body.
Returns _True if the node redefines an import, _False otherwise.
"""
current = node
while current and not isinstance(current.parent, nodes.Excep... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 240 | error_of_type | ref | function | if not current or not utils.error_of_type(current.parent, ImportError):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 243 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 262 | in_loop | def | function | def in_loop(node: nodes.NodeNG) -> bool:
"""Return whether the node is inside a kind of for loop."""
return any(isinstance(parent, LOOPLIKE_NODES) for parent in node.node_ancestors())
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 264 | node_ancestors | ref | function | return any(isinstance(parent, LOOPLIKE_NODES) for parent in node.node_ancestors())
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 267 | in_nested_list | def | function | def in_nested_list(nested_list, obj):
"""Return true if the object is an element of <nested_list> or of a nested
list
"""
for elmt in nested_list:
if isinstance(elmt, (list, tuple)):
if in_nested_list(elmt, obj):
return _True
elif elmt == obj:
retu... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 273 | in_nested_list | ref | function | if in_nested_list(elmt, obj):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 280 | _get_break_loop_node | def | function | def _get_break_loop_node(break_node):
"""Returns the loop node that holds the break node in arguments.
Args:
break_node (astroid.Break): the break node of interest.
Returns:
astroid.For or astroid.While: the loop node holding the break node.
"""
loop_nodes = (nodes.For, nodes.While... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 301 | _loop_exits_early | def | function | def _loop_exits_early(loop):
"""Returns true if a loop may end with a break statement.
Args:
loop (astroid.For, astroid.While): the loop node inspected.
Returns:
bool: _True if the loop may end with a break statement, _False otherwise.
"""
loop_nodes = (nodes.For, nodes.While)
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 314 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 319 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 320 | _get_break_loop_node | ref | function | if _get_break_loop_node(_node) not in inner_loop_nodes
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 324 | _is_multi_naming_match | def | function | def _is_multi_naming_match(match, node_type, confidence):
return (
match is not None
and match.lastgroup is not None
and match.lastgroup not in EXEMPT_NAME_CATEGORIES
and (node_type != "method" or confidence != interfaces.INFERENCE_FAILURE)
)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 336 | _get_properties | def | function | def _get_properties(config):
"""Returns a tuple of property classes and names.
Property classes are fully qualified, such as 'abc.abstractproperty' and
property names are the actual names, such as 'abstract_property'.
"""
property_classes = {BUILTIN_PROPERTY}
property_names = set() # Not retur... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 352 | _determine_function_name_type | def | function | def _determine_function_name_type(node: nodes.FunctionDef, config=None):
"""Determine the name type whose regex the function's name should match.
:param node: A function node.
:param config: Configuration from which to pull additional property classes.
:type config: :class:`optparse.Values`
:retur... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 362 | _get_properties | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 363 | is_method | ref | function | if not node.is_method():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 366 | is_property_setter | ref | function | if is_property_setter(node) or is_property_deleter(node):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 366 | is_property_deleter | ref | function | if is_property_setter(node) or is_property_deleter(node):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 379 | safe_infer | ref | function | inferred = utils.safe_infer(decorator)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 383 | qname | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 389 | _has_abstract_methods | def | function | def _has_abstract_methods(node):
"""Determine if the given `node` has abstract methods.
The methods should be made abstract by decorating them
with `abc` decorators.
"""
return len(utils.unimplemented_abstract_methods(node)) > 0
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 395 | unimplemented_abstract_methods | ref | function | return len(utils.unimplemented_abstract_methods(node)) > 0
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 398 | report_by_type_stats | def | function | def report_by_type_stats(
sect,
stats: LinterStats,
old_stats: Optional[LinterStats],
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 412 | get_node_count | ref | function | total = stats.get_node_count(node_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 415 | get_undocumented | ref | function | undocumented_node = stats.get_undocumented(node_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 419 | get_bad_names | ref | function | badname_node = stats.get_bad_names(node_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 425 | get_node_count | ref | function | new = stats.get_node_count(node_type)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 426 | get_node_count | ref | function | old = old_stats.get_node_count(node_type) if old_stats else None
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 427 | diff_string | ref | function | diff_str = lint_utils.diff_string(old, new) if old else None
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 436 | Table | ref | function | sect.append(reporter_nodes.Table(children=lines, cols=6, rheaders=1))
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 439 | redefined_by_decorator | def | function | def redefined_by_decorator(node):
"""Return _True if the object is a method redefined via decorator.
For example:
@property
def x(self): return self._x
@x.setter
def x(self, value): self._x = value
"""
if node.decorators:
for decorator in node.decorators.nodes:
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 458 | _BasicChecker | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 463 | BasicErrorChecker | def | class | visit_classdef _too_many_starred_for_tuple visit_assign visit_starred visit_functiondef _check_name_used_prior_global _check_nonlocal_and_global visit_return visit_yield visit_yieldfrom visit_continue visit_break visit_for visit_while visit_unaryop _check_nonlocal_without_binding visit_nonlocal visit_call _check_inferr... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 573 | check_messages | ref | function | @utils.check_messages("function-redefined")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 574 | visit_classdef | def | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 575 | _check_redefinition | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 577 | _too_many_starred_for_tuple | def | function | def _too_many_starred_for_tuple(self, assign_tuple):
starred_count = 0
for elem in assign_tuple.itered():
if isinstance(elem, nodes.Tuple):
return self._too_many_starred_for_tuple(elem)
if isinstance(elem, nodes.Starred):
starred_count += 1
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 579 | itered | ref | function | for elem in assign_tuple.itered():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 581 | _too_many_starred_for_tuple | ref | function | return self._too_many_starred_for_tuple(elem)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 586 | check_messages | ref | function | @utils.check_messages("too-many-star-expressions", "invalid-star-assignment-target")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 587 | visit_assign | def | function | def visit_assign(self, node: nodes.Assign) -> None:
# Check *a, *b = ...
assign_target = node.targets[0]
# Check *a = b
if isinstance(node.targets[0], nodes.Starred):
self.add_message("invalid-star-assignment-target", node=node)
if not isinstance(assign_target, n... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 592 | add_message | ref | function | self.add_message("invalid-star-assignment-target", node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 596 | _too_many_starred_for_tuple | ref | function | if self._too_many_starred_for_tuple(assign_target):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 597 | add_message | ref | function | self.add_message("too-many-star-expressions", node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 599 | check_messages | ref | function | @utils.check_messages("star-needs-assignment-target")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 600 | visit_starred | def | function | def visit_starred(self, node: nodes.Starred) -> None:
"""Check that a Starred expression is used in an assignment target."""
if isinstance(node.parent, nodes.Call):
# f(*args) is converted to Call(args=[Starred]), so ignore
# them for this check.
return
if... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 610 | statement | ref | function | stmt = node.statement(future=True)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 614 | parent_of | ref | function | if stmt.value is node or stmt.value.parent_of(node):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 615 | add_message | ref | function | self.add_message("star-needs-assignment-target", node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 617 | check_messages | ref | function | @utils.check_messages(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 626 | visit_functiondef | def | function | def visit_functiondef(self, node: nodes.FunctionDef) -> None:
self._check_nonlocal_and_global(node)
self._check_name_used_prior_global(node)
if not redefined_by_decorator(
node
) and not utils.is_registered_in_singledispatch_function(node):
self._check_redefin... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 627 | _check_nonlocal_and_global | ref | function | self._check_nonlocal_and_global(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 628 | _check_name_used_prior_global | ref | function | self._check_name_used_prior_global(node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 629 | redefined_by_decorator | ref | function | if not redefined_by_decorator(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 631 | is_registered_in_singledispatch_function | ref | function | ) and not utils.is_registered_in_singledispatch_function(node):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 632 | _check_redefinition | ref | function | self._check_redefinition(node.is_method() and "method" or "function", node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 632 | is_method | ref | function | self._check_redefinition(node.is_method() and "method" or "function", node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 634 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 637 | is_method | ref | function | if node.is_method() and node.name == "__init__":
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 638 | is_generator | ref | function | if node.is_generator():
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 639 | add_message | ref | function | self.add_message("init-is-generator", node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 643 | is_none | ref | function | if any(v for v in values if not utils.is_none(v)):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 644 | add_message | ref | function | self.add_message("return-in-init", node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 649 | from_iterable | ref | function | for arg in itertools.chain.from_iterable(arguments):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 656 | add_message | ref | function | self.add_message(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 665 | _check_name_used_prior_global | def | function | def _check_name_used_prior_global(self, node):
scope_globals = {
name: child
for child in node.nodes_of_class(nodes.Global)
for name in child.names
if child.scope() is node
}
if not scope_globals:
return
for node_name in ... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 669 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 671 | scope | ref | function | if child.scope() is node
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 677 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 678 | scope | ref | function | if node_name.scope() is not node:
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 688 | add_message | ref | function | self.add_message(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 692 | _check_nonlocal_and_global | def | function | def _check_nonlocal_and_global(self, node):
"""Check that a name is both nonlocal and global."""
def same_scope(current):
return current.scope() is node
from_iter = itertools.chain.from_iterable
nonlocals = set(
from_iter(
child.names
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 695 | same_scope | def | function | def same_scope(current):
return current.scope() is node
from_iter = itertools.chain.from_iterable
nonlocals = set(
from_iter(
child.names
for child in node.nodes_of_class(nodes.Nonlocal)
if same_scope(child)
)
... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 696 | scope | ref | function | return current.scope() is node
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 700 | from_iter | ref | function | from_iter(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 702 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 703 | same_scope | ref | function | if same_scope(child)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 711 | from_iter | ref | function | from_iter(
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 713 | nodes_of_class | ref | class | |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 714 | same_scope | ref | function | if same_scope(child)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 718 | add_message | ref | function | self.add_message("nonlocal-and-global", args=(name,), node=node)
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 720 | check_messages | ref | function | @utils.check_messages("return-outside-function")
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 721 | visit_return | def | function | def visit_return(self, node: nodes.Return) -> None:
if not isinstance(node.frame(future=_True), nodes.FunctionDef):
self.add_message("return-outside-function", node=node)
@utils.check_messages("yield-outside-function")
def visit_yield(self, node: nodes.Yield) -> None:
self._chec... |
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 722 | frame | ref | function | if not isinstance(node.frame(future=True), nodes.FunctionDef):
|
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/checkers/base.py | pylint/checkers/base.py | 723 | add_message | ref | function | self.add_message("return-outside-function", node=node)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.