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/utils.py
pylint/checkers/utils.py
303
nodes_of_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
308
parent_of
ref
function
if expr.parent_of(var_node):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
313
is_argument
ref
function
if scope.args.is_argument(varname):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
317
parent_of
ref
function
if scope.args.parent_of(var_node):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
319
default_value
ref
function
scope.args.default_value(varname)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
321
is_defined_in_scope
ref
function
is_defined_in_scope(var_node, varname, scope)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
335
is_defined_before
def
function
def is_defined_before(var_node: nodes.Name) -> bool: """Check if the given variable node is defined before. Verify that the variable node is defined by a parent node (list, set, dict, or generator comprehension, lambda) or in a previous sibling node on the same line (statement_defining ; statement_...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
344
node_ancestors
ref
function
for parent in var_node.node_ancestors():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
345
is_defined_in_scope
ref
function
if is_defined_in_scope(var_node, varname, parent):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
348
statement
ref
function
stmt = var_node.statement(future=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
349
previous_sibling
ref
function
_node = stmt.previous_sibling()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
352
nodes_of_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
355
nodes_of_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
358
previous_sibling
ref
function
_node = _node.previous_sibling()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
362
is_default_argument
def
function
def is_default_argument(node: nodes.NodeNG, scope: nodes.NodeNG | None = None) -> bool: """Return true if the given Name node is used in function or lambda default argument's value. """ if not scope: scope = node.scope() if isinstance(scope, (nodes.FunctionDef, nodes.Lambda)): all_de...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
367
scope
ref
function
scope = node.scope()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
375
nodes_of_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
381
is_func_decorator
def
function
def is_func_decorator(node: nodes.NodeNG) -> bool: """Return true if the name is used in function decorator.""" for parent in node.node_ancestors(): if isinstance(parent, nodes.Decorators): return _True if parent.is_statement or isinstance( parent, ( ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
383
node_ancestors
ref
function
for parent in node.node_ancestors():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
398
is_ancestor_name
def
function
def is_ancestor_name(frame: nodes.ClassDef, node: nodes.NodeNG) -> bool: """Return whether `frame` is an astroid.Class node with `node` in the subtree of its bases attribute. """ if not isinstance(frame, nodes.ClassDef): return _False return any(node in base.nodes_of_class(nodes.Name) for ba...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
404
nodes_of_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
407
is_being_called
def
function
def is_being_called(node: nodes.NodeNG) -> bool: """Return _True if node is the function being called in a Call node.""" return isinstance(node.parent, nodes.Call) and node.parent.func is node
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
412
assign_parent
def
function
def assign_parent(node: nodes.NodeNG) -> nodes.NodeNG: """Return the higher parent which is not an AssignName, Tuple or List node.""" while node and isinstance(node, (nodes.AssignName, nodes.Tuple, nodes.List)): node = node.parent return node
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
419
overrides_a_method
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
423
ancestors
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
431
only_required_for_messages
def
function
def only_required_for_messages( *messages: str,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
446
store_messages
def
function
def store_messages( func: AstCallbackMethod[_CheckerT, _NodeT] ) -> AstCallbackMethod[_CheckerT, _NodeT]: setattr(func, "checks_msgs", messages) return func return store_messages
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
455
check_messages
def
function
def check_messages( *messages: str,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
470
only_required_for_messages
ref
function
return only_required_for_messages(*messages)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
473
IncompleteFormatString
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
477
UnsupportedFormatCharacter
def
class
__init__
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
487
parse_format_string
def
function
def parse_format_string( format_string: str,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
501
next_char
def
function
def next_char(i): i += 1 if i == len(format_string): raise IncompleteFormatString return (i, format_string[i]) i = 0 while i < len(format_string): char = format_string[i] if char == "%": i, char = next_char(i) # Parse the mapping k...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
511
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
516
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
523
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
529
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
533
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
536
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
539
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
542
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
545
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
548
next_char
ref
function
i, char = next_char(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
552
UnsupportedFormatCharacter
ref
function
raise UnsupportedFormatCharacter(i)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
563
split_format_field_names
def
function
def split_format_field_names(format_string) -> tuple[str, Iterable[tuple[bool, str]]]: try: return _string.formatter_field_name_split(format_string) except ValueError as e: raise IncompleteFormatString() from e
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
567
IncompleteFormatString
ref
function
raise IncompleteFormatString() from e
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
570
collect_string_fields
def
function
def collect_string_fields(format_string) -> Iterable[str | None]: """Given a format string, return an iterator of all the valid format fields. It handles nested fields as well. """ formatter = string.Formatter() try: parseiterator = formatter.parse(format_string) for result in p...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
578
parse
ref
function
parseiterator = formatter.parse(format_string)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
587
collect_string_fields
ref
function
yield from collect_string_fields(nested)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
600
IncompleteFormatString
ref
function
raise IncompleteFormatString(format_string) from exc
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
603
parse_format_method_string
def
function
def parse_format_method_string( format_string: str,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
616
collect_string_fields
ref
function
for name in collect_string_fields(format_string):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
620
split_format_field_names
ref
function
keyname, fielditerator = split_format_field_names(name)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
626
IncompleteFormatString
ref
function
raise IncompleteFormatString() from e
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
632
is_attr_protected
def
function
def is_attr_protected(attrname: str) -> bool: """Return _True if attribute name is protected (start with _ and some other details), _False otherwise. """ return ( attrname[0] == "_" and attrname != "_" and not (attrname.startswith("__") and attrname.endswith("__")) )
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
643
node_frame_class
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
649
frame
ref
function
klass = node.frame(future=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
663
frame
ref
function
klass = klass.parent.frame(future=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
668
get_outer_class
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
670
frame
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
675
is_attr_private
def
function
def is_attr_private(attrname: str) -> Match[str] | None: """Check that attribute name is private (at least two leading underscores, at most one trailing underscore). """ regex = re.compile("^_{2,}.*[^_]+_?$") return regex.match(attrname)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
683
get_argument_from_call
def
function
def get_argument_from_call( call_node: nodes.Call, position: int | None = None, keyword: str | None = None
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
713
inherit_from_std_ex
def
function
def inherit_from_std_ex(node: nodes.NodeNG | astroid.Instance) -> bool: """Return whether the given class node is subclass of exceptions.Exception. """ ancestors = node.ancestors() if hasattr(node, "ancestors") else [] return any( ancestor.name in {"Exception", "BaseException"} and a...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
717
ancestors
ref
function
ancestors = node.ancestors() if hasattr(node, "ancestors") else []
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
720
root
ref
function
and ancestor.root().name == EXCEPTIONS_MODULE
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
725
error_of_type
def
function
def error_of_type(handler: nodes.ExceptHandler, error_type) -> bool: """Check if the given exception handler catches the given error_type. The *handler* parameter is a node, representing an ExceptHandler node. The *error_type* can be an exception, such as AttributeError, the name of an exception, o...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
736
stringify_error
def
function
def stringify_error(error): if not isinstance(error, str): return error.__name__ return error if not isinstance(error_type, tuple): error_type = (error_type,) expected_errors = {stringify_error(error) for error in error_type} if not handler.type: return _Fals...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
743
stringify_error
ref
function
expected_errors = {stringify_error(error) for error in error_type}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
746
catch
ref
function
return handler.catch(expected_errors)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
749
decorated_with_property
def
function
def decorated_with_property(node: nodes.FunctionDef) -> bool: """Detect if the given function node is decorated with a property.""" if not node.decorators: return _False for decorator in node.decorators.nodes: try: if _is_property_decorator(decorator): return _Tru...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
755
_is_property_decorator
ref
function
if _is_property_decorator(decorator):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
762
_is_property_kind
def
function
def _is_property_kind(node, *kinds): if not isinstance(node, (astroid.UnboundMethod, nodes.FunctionDef)): return _False if node.decorators: for decorator in node.decorators.nodes: if isinstance(decorator, nodes.Attribute) and decorator.attrname in kinds: return _True ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
772
is_property_setter
def
function
def is_property_setter(node: nodes.FunctionDef) -> bool: """Check if the given node is a property setter.""" return _is_property_kind(node, "setter")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
774
_is_property_kind
ref
function
return _is_property_kind(node, "setter")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
777
is_property_deleter
def
function
def is_property_deleter(node: nodes.FunctionDef) -> bool: """Check if the given node is a property deleter.""" return _is_property_kind(node, "deleter")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
779
_is_property_kind
ref
function
return _is_property_kind(node, "deleter")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
782
is_property_setter_or_deleter
def
function
def is_property_setter_or_deleter(node: nodes.FunctionDef) -> bool: """Check if the given node is either a property setter or a deleter.""" return _is_property_kind(node, "setter", "deleter")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
784
_is_property_kind
ref
function
return _is_property_kind(node, "setter", "deleter")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
787
_is_property_decorator
def
function
def _is_property_decorator(decorator: nodes.Name) -> bool: for inferred in decorator.infer(): if isinstance(inferred, nodes.ClassDef): if inferred.qname() in {"builtins.property", "functools.cached_property"}: return _True for ancestor in inferred.ancestors(): ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
788
infer
ref
function
for inferred in decorator.infer():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
790
qname
ref
function
if inferred.qname() in {"builtins.property", "functools.cached_property"}:
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
792
ancestors
ref
function
for ancestor in inferred.ancestors():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
793
root
ref
function
if ancestor.name == "property" and ancestor.root().name == "builtins":
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
799
_get_return_nodes_skip_functions
ref
function
inferred._get_return_nodes_skip_functions()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
804
safe_infer
ref
function
inferred = safe_infer(returns[0].value)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
810
decorated_with_property
ref
function
return decorated_with_property(inferred.function)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
814
decorated_with
def
function
def decorated_with( func: ( nodes.ClassDef | nodes.FunctionDef | astroid.BoundMethod | astroid.UnboundMethod ), qnames: Iterable[str],
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
828
qname
ref
function
i.name in qnames or i.qname() in qnames
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
829
infer
ref
function
for i in decorator_node.infer()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
838
uninferable_final_decorators
def
function
def uninferable_final_decorators( node: nodes.Decorators,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
851
lookup
ref
function
import_node = decorator.expr.lookup(decorator.expr.name)[1][0]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
855
lookup
ref
function
lookup_values = decorator.lookup(decorator.name)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
875
safe_infer
ref
function
if (is_from_import or is_import) and safe_infer(decorator) in [
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
884
unimplemented_abstract_methods
def
function
def unimplemented_abstract_methods( node: nodes.ClassDef, is_abstract_cb: nodes.FunctionDef = None
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
901
mro
ref
function
mro = reversed(node.mro())
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
912
safe_infer
ref
function
inferred = safe_infer(obj)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
933
is_abstract_cb
ref
function
abstract = is_abstract_cb(inferred)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
941
find_try_except_wrapper_node
def
function
def find_try_except_wrapper_node( node: nodes.NodeNG,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
955
find_except_wrapper_node_in_scope
def
function
def find_except_wrapper_node_in_scope( node: nodes.NodeNG,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/utils.py
pylint/checkers/utils.py
959
node_ancestors
ref
function
for current in node.node_ancestors():