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/typecheck.py | pylint/checkers/typecheck.py | 1,182 | safe_infer | ref | function | function_node = safe_infer(node.value.func)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,198 | _is_ignored_function | ref | function | or self._is_ignored_function(function_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,203 | _is_list_sort_method | ref | function | if self._is_list_sort_method(node.value):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,204 | add_message | ref | function | self.add_message("assignment-from-none", node=node, confidence=INFERENCE)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,207 | root | ref | function | if not function_node.root().fully_defined():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,207 | fully_defined | ref | function | if not function_node.root().fully_defined():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,211 | nodes_of_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,214 | add_message | ref | function | self.add_message("assignment-from-no-return", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,224 | add_message | ref | function | self.add_message("assignment-from-none", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,227 | _is_ignored_function | def | function | def _is_ignored_function(
function_node: nodes.FunctionDef | bases.UnboundMethod,
) -> bool:
return (
isinstance(function_node, nodes.AsyncFunctionDef)
or utils.is_error(function_node)
or function_node.is_generator()
or function_node.is_abstract(pa... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,232 | is_error | ref | function | or utils.is_error(function_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,233 | is_generator | ref | function | or function_node.is_generator()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,234 | is_abstract | ref | function | or function_node.is_abstract(pass_is_abstract=False)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,238 | _is_list_sort_method | def | function | def _is_list_sort_method(node: nodes.Call) -> bool:
return (
isinstance(node.func, nodes.Attribute)
and node.func.attrname == "sort"
and isinstance(utils.safe_infer(node.func.expr), nodes.List)
)
def _check_dundername_is_string(self, node) -> None:
""... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,242 | safe_infer | ref | function | and isinstance(utils.safe_infer(node.func.expr), nodes.List)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,245 | _check_dundername_is_string | def | function | def _check_dundername_is_string(self, node) -> None:
"""Check a string is assigned to self.__name__."""
# Check the left-hand side of the assignment is <something>.__name__
lhs = node.targets[0]
if not isinstance(lhs, nodes.AssignAttr):
return
if not lhs.attrname... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,259 | safe_infer | ref | function | inferred = utils.safe_infer(rhs)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,264 | add_message | ref | function | self.add_message("non-str-assignment-to-dunder-name", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,266 | _check_uninferable_call | def | function | def _check_uninferable_call(self, node):
"""Check that the given uninferable Call node does not
call an actual function.
"""
if not isinstance(node.func, nodes.Attribute):
return
# Look for properties. First, obtain
# the lhs of the Attribute node and sea... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,279 | safe_infer | ref | function | klass = safe_infer(expr)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,300 | decorated_with_property | ref | function | if decorated_with_property(attr):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,302 | infer_call_result | ref | function | call_results = list(attr.infer_call_result(node))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,316 | add_message | ref | function | self.add_message("not-callable", node=node, args=node.func.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,316 | as_string | ref | function | self.add_message("not-callable", node=node, args=node.func.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,318 | _check_argument_order | def | function | def _check_argument_order(self, node, call_site, called, called_param_names):
"""Match the supplied argument names against the function parameters.
Warn if some argument names are not in the same order as they are in
the function signature.
"""
# Check for called function be... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,356 | add_message | ref | function | self.add_message("arguments-out-of-order", node=node, args=())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,358 | _check_isinstance_args | def | function | def _check_isinstance_args(self, node):
if len(node.args) != 2:
# isinstance called with wrong number of args
return
second_arg = node.args[1]
if _is_invalid_isinstance_type(second_arg):
self.add_message("isinstance-second-argument-not-valid-type", node=n... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,364 | _is_invalid_isinstance_type | ref | function | if _is_invalid_isinstance_type(second_arg):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,365 | add_message | ref | function | self.add_message("isinstance-second-argument-not-valid-type", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,368 | visit_call | def | function | def visit_call(self, node: nodes.Call) -> None:
"""Check that called functions/methods are inferred to callable objects,
and that passed arguments match the parameters in the inferred function.
"""
called = safe_infer(node.func)
self._check_not_callable(node, called)
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,372 | safe_infer | ref | function | called = safe_infer(node.func)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,374 | _check_not_callable | ref | function | self._check_not_callable(node, called)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,377 | _determine_callable | ref | function | called, implicit_args, callable_name = _determine_callable(called)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,386 | _check_isinstance_args | ref | function | self._check_isinstance_args(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,390 | argnames | ref | function | if len(called.argnames()) != len(set(called.argnames())):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,390 | argnames | ref | function | if len(called.argnames()) != len(set(called.argnames())):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,397 | from_call | ref | function | call_site = astroid.arguments.CallSite.from_call(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,401 | add_message | ref | function | self.add_message("repeated-keyword", node=node, args=(keyword,))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,403 | has_invalid_arguments | ref | function | if call_site.has_invalid_arguments() or call_site.has_invalid_keywords():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,403 | has_invalid_keywords | ref | function | if call_site.has_invalid_arguments() or call_site.has_invalid_keywords():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,408 | decorated_with | ref | function | if hasattr(called, "decorators") and decorated_with(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,415 | is_overload_stub | ref | function | overload_function = is_overload_stub(called)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,418 | scope | ref | function | node_scope = node.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,420 | _no_context_variadic_positional | ref | function | has_no_context_positional_variadic = _no_context_variadic_positional(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,423 | _no_context_variadic_keywords | ref | function | has_no_context_keywords_variadic = _no_context_variadic_keywords(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,469 | _check_argument_order | ref | function | self._check_argument_order(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,483 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,500 | qname | ref | function | if not (keyword == "self" and called.qname() in STR_FORMAT):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,501 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,511 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,523 | _keyword_argument_is_in_all_decorator_returns | ref | function | ) and self._keyword_argument_is_in_all_decorator_returns(called, keyword):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,527 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,548 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,562 | add_message | ref | function | self.add_message("missing-kwoa", node=node, args=(name, callable_name))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,565 | _keyword_argument_is_in_all_decorator_returns | def | function | def _keyword_argument_is_in_all_decorator_returns(
func: nodes.FunctionDef, keyword: str
) -> bool:
"""Check if the keyword argument exists in all signatures of the
return values of all decorators of the function.
"""
if not func.decorators:
return _False
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,575 | safe_infer | ref | function | inferred = safe_infer(decorator)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,586 | infer_call_result | ref | function | for return_value in inferred.infer_call_result():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,597 | is_argument | ref | function | if return_value.args.is_argument(keyword):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,604 | _check_invalid_sequence_index | def | function | def _check_invalid_sequence_index(self, subscript: nodes.Subscript):
# Look for index operations where the parent is a sequence type.
# If the types can be determined, only allow indices to be int,
# slice or instances with __index__.
parent_type = safe_infer(subscript.value)
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,608 | safe_infer | ref | function | parent_type = safe_infer(subscript.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,611 | has_known_bases | ref | function | ) or not has_known_bases(parent_type):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,629 | lookup | ref | function | methods = astroid.interpreter.dunder_lookup.lookup(parent_type, methodname)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,640 | root | ref | function | or itemmethod.root().name != "builtins"
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,642 | frame | ref | function | or itemmethod.parent.frame().name not in SEQUENCE_TYPES
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,652 | safe_infer | ref | function | index_type = safe_infer(subscript.slice)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,661 | pytype | ref | function | if index_type.pytype() in {"builtins.int", "builtins.slice"}:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,672 | _check_invalid_slice_index | ref | function | return self._check_invalid_slice_index(index_type)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,675 | add_message | ref | function | self.add_message("invalid-sequence-index", node=subscript)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,678 | _check_not_callable | def | function | def _check_not_callable(
self, node: nodes.Call, inferred_call: nodes.NodeNG | None
) -> None:
"""Checks to see if the not-callable message should be emitted.
Only functions, generators and objects defining __call__ are "callable"
We ignore instances of descriptors since astroid... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,688 | _check_uninferable_call | ref | function | self._check_uninferable_call(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,692 | add_message | ref | function | self.add_message("not-callable", node=node, args=node.func.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,692 | as_string | ref | function | self.add_message("not-callable", node=node, args=node.func.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,696 | has_known_bases | ref | function | if not has_known_bases(inferred_call):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,699 | scope | ref | function | if inferred_call.parent and isinstance(inferred_call.scope(), nodes.ClassDef):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,704 | qname | ref | function | if inferred_call.qname() == "typing.NamedTuple":
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,707 | add_message | ref | function | self.add_message("not-callable", node=node, args=node.func.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,707 | as_string | ref | function | self.add_message("not-callable", node=node, args=node.func.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,709 | only_required_for_messages | ref | function | @only_required_for_messages("invalid-sequence-index")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,710 | visit_extslice | def | function | def visit_extslice(self, node: nodes.ExtSlice) -> None:
if not node.parent or not hasattr(node.parent, "value"):
return None
# Check extended slice objects as if they were used as a sequence
# index to check if the object being sliced can support them
return self._check_i... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,715 | _check_invalid_sequence_index | ref | function | return self._check_invalid_sequence_index(node.parent)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,717 | _check_invalid_slice_index | def | function | def _check_invalid_slice_index(self, node: nodes.Slice) -> None:
# Check the type of each part of the slice
invalid_slices_nodes: list[nodes.NodeNG] = []
for index in (node.lower, node.upper, node.step):
if index is None:
continue
index_type = safe_in... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,724 | safe_infer | ref | function | index_type = safe_infer(index)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,735 | pytype | ref | function | if index_type.pytype() in {"builtins.int", "builtins.NoneType"}:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,754 | safe_infer | ref | function | inferred = safe_infer(parent.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,769 | add_message | ref | function | self.add_message("invalid-slice-index", node=snode)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,771 | only_required_for_messages | ref | function | @only_required_for_messages("not-context-manager")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,772 | visit_with | def | function | def visit_with(self, node: nodes.With) -> None:
for ctx_mgr, _ in node.items:
context = astroid.context.InferenceContext()
inferred = safe_infer(ctx_mgr, context=context)
if inferred is None or inferred is astroid.Uninferable:
continue
if isin... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,774 | InferenceContext | ref | function | context = astroid.context.InferenceContext()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,775 | safe_infer | ref | function | inferred = safe_infer(ctx_mgr, context=context)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,782 | decorated_with | ref | function | if decorated_with(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,800 | _unflatten | ref | function | None, _unflatten(context.path)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,802 | _flatten_container | ref | function | inferred_paths = _flatten_container(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,803 | safe_infer | ref | function | safe_infer(path) for path in context_path_names
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,808 | scope | ref | function | scope = inferred_path.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,811 | decorated_with | ref | function | if decorated_with(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,816 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,827 | has_known_bases | ref | function | if not has_known_bases(inferred):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,837 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,841 | only_required_for_messages | ref | function | @only_required_for_messages("invalid-unary-operand-type")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,842 | visit_unaryop | def | function | def visit_unaryop(self, node: nodes.UnaryOp) -> None:
"""Detect TypeErrors for unary operands."""
for error in node.type_errors():
# Let the error customize its output.
self.add_message("invalid-unary-operand-type", args=str(error), node=node)
@only_required_for_message... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.