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,845 | type_errors | ref | function | for error in node.type_errors():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,847 | add_message | ref | function | self.add_message("invalid-unary-operand-type", args=str(error), node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,849 | only_required_for_messages | ref | function | @only_required_for_messages("unsupported-binary-operation")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,850 | visit_binop | def | function | def visit_binop(self, node: nodes.BinOp) -> None:
if node.op == "|":
self._detect_unsupported_alternative_union_syntax(node)
def _detect_unsupported_alternative_union_syntax(self, node: nodes.BinOp) -> None:
"""Detect if unsupported alternative Union syntax (PEP 604) was used."""
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,852 | _detect_unsupported_alternative_union_syntax | ref | function | self._detect_unsupported_alternative_union_syntax(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,854 | _detect_unsupported_alternative_union_syntax | def | function | def _detect_unsupported_alternative_union_syntax(self, node: nodes.BinOp) -> None:
"""Detect if unsupported alternative Union syntax (PEP 604) was used."""
if self._py310_plus: # 310+ supports the new syntax
return
if isinstance(
node.parent, TYPE_ANNOTATION_NODES_T... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,861 | is_postponed_evaluation_enabled | ref | function | ) and not is_postponed_evaluation_enabled(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,864 | _check_unsupported_alternative_union_syntax | ref | function | self._check_unsupported_alternative_union_syntax(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,883 | is_postponed_evaluation_enabled | ref | function | if is_postponed_evaluation_enabled(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,893 | _check_unsupported_alternative_union_syntax | ref | function | self._check_unsupported_alternative_union_syntax(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,895 | _check_unsupported_alternative_union_syntax | def | function | def _check_unsupported_alternative_union_syntax(self, node: nodes.BinOp) -> None:
"""Check if left or right node is of type `type`."""
msg = "unsupported operand type(s) for |"
for n in (node.left, node.right):
n = astroid.helpers.object_type(n)
if isinstance(n, nodes... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,899 | object_type | ref | function | n = astroid.helpers.object_type(n)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,900 | is_classdef_type | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,901 | add_message | ref | function | self.add_message("unsupported-binary-operation", args=msg, node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,907 | only_required_for_messages | ref | function | @only_required_for_messages("unsupported-binary-operation")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,908 | _visit_binop | def | function | def _visit_binop(self, node: nodes.BinOp) -> None:
"""Detect TypeErrors for binary arithmetic operands."""
self._check_binop_errors(node)
# TODO: This check was disabled (by adding the leading underscore)
# due to false positives several years ago - can we re-enable it?
# https://github... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,910 | _check_binop_errors | ref | function | self._check_binop_errors(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,915 | only_required_for_messages | ref | function | @only_required_for_messages("unsupported-binary-operation")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,916 | _visit_augassign | def | function | def _visit_augassign(self, node: nodes.AugAssign) -> None:
"""Detect TypeErrors for augmented binary arithmetic operands."""
self._check_binop_errors(node)
def _check_binop_errors(self, node):
for error in node.type_errors():
# Let the error customize its output.
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,918 | _check_binop_errors | ref | function | self._check_binop_errors(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,920 | _check_binop_errors | def | function | def _check_binop_errors(self, node):
for error in node.type_errors():
# Let the error customize its output.
if any(
isinstance(obj, nodes.ClassDef) and not has_known_bases(obj)
for obj in (error.left_type, error.right_type)
):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,921 | type_errors | ref | function | for error in node.type_errors():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,924 | has_known_bases | ref | function | isinstance(obj, nodes.ClassDef) and not has_known_bases(obj)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,928 | add_message | ref | function | self.add_message("unsupported-binary-operation", args=str(error), node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,930 | _check_membership_test | def | function | def _check_membership_test(self, node):
if is_inside_abstract_class(node):
return
if is_comprehension(node):
return
inferred = safe_infer(node)
if inferred is None or inferred is astroid.Uninferable:
return
if not supports_membership_test(i... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,931 | is_inside_abstract_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,933 | is_comprehension | ref | function | if is_comprehension(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,935 | safe_infer | ref | function | inferred = safe_infer(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,938 | supports_membership_test | ref | function | if not supports_membership_test(inferred):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,939 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,940 | as_string | ref | function | "unsupported-membership-test", args=node.as_string(), node=node
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,943 | only_required_for_messages | ref | function | @only_required_for_messages("unsupported-membership-test")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,944 | visit_compare | def | function | def visit_compare(self, node: nodes.Compare) -> None:
if len(node.ops) != 1:
return
op, right = node.ops[0]
if op in {"in", "not in"}:
self._check_membership_test(right)
@only_required_for_messages(
"unsubscriptable-object",
"unsupported-assignme... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,950 | _check_membership_test | ref | function | self._check_membership_test(right)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,952 | only_required_for_messages | ref | function | @only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,960 | visit_subscript | def | function | def visit_subscript(self, node: nodes.Subscript) -> None:
self._check_invalid_sequence_index(node)
supported_protocol: Callable[[Any, Any], bool] | None = None
if isinstance(node.value, (nodes.ListComp, nodes.DictComp)):
return
if isinstance(node.value, nodes.Dict):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,961 | _check_invalid_sequence_index | ref | function | self._check_invalid_sequence_index(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,969 | safe_infer | ref | function | inferred = safe_infer(node.slice)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,972 | igetattr | ref | function | hash_fn = next(inferred.igetattr("__hash__"))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,977 | add_message | ref | function | self.add_message("unhashable-dict-key", node=node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,990 | add_message | ref | function | self.add_message(msg, args=node.value.as_string(), node=node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,990 | as_string | ref | function | self.add_message(msg, args=node.value.as_string(), node=node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,993 | is_inside_abstract_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 1,996 | safe_infer | ref | function | inferred = safe_infer(node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,002 | safe_infer | ref | function | first_decorator = astroid.helpers.safe_infer(inferred.decorators.nodes[0])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,004 | instantiate_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,011 | supported_protocol | ref | function | and not supported_protocol(inferred, node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,012 | in_type_checking_block | ref | function | and not utils.in_type_checking_block(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,014 | add_message | ref | function | self.add_message(msg, args=node.value.as_string(), node=node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,014 | as_string | ref | function | self.add_message(msg, args=node.value.as_string(), node=node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,016 | only_required_for_messages | ref | function | @only_required_for_messages("dict-items-missing-iter")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,017 | visit_for | def | function | def visit_for(self, node: nodes.For) -> None:
if not isinstance(node.target, nodes.Tuple):
# target is not a tuple
return
if not len(node.target.elts) == 2:
# target is not a tuple of two elements
return
iterable = node.iter
if not isi... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,030 | safe_infer | ref | function | inferred = safe_infer(iterable)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,041 | add_message | ref | function | self.add_message("dict-iter-missing-items", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,043 | only_required_for_messages | ref | function | @only_required_for_messages("await-outside-async")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,044 | visit_await | def | function | def visit_await(self, node: nodes.Await) -> None:
self._check_await_outside_coroutine(node)
def _check_await_outside_coroutine(self, node: nodes.Await) -> None:
node_scope = node.scope()
while not isinstance(node_scope, nodes.Module):
if isinstance(node_scope, nodes.AsyncFun... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,045 | _check_await_outside_coroutine | ref | function | self._check_await_outside_coroutine(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,047 | _check_await_outside_coroutine | def | function | def _check_await_outside_coroutine(self, node: nodes.Await) -> None:
node_scope = node.scope()
while not isinstance(node_scope, nodes.Module):
if isinstance(node_scope, nodes.AsyncFunctionDef):
return
if isinstance(node_scope, nodes.FunctionDef):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,048 | scope | ref | function | node_scope = node.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,054 | scope | ref | function | node_scope = node_scope.parent.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,055 | add_message | ref | function | self.add_message("await-outside-async", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,058 | IterableChecker | def | class | _is_asyncio_coroutine _check_iterable _check_mapping visit_for visit_asyncfor visit_yieldfrom visit_call visit_listcomp visit_dictcomp visit_setcomp visit_generatorexp |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,088 | _is_asyncio_coroutine | def | function | def _is_asyncio_coroutine(node):
if not isinstance(node, nodes.Call):
return _False
inferred_func = safe_infer(node.func)
if not isinstance(inferred_func, nodes.FunctionDef):
return _False
if not inferred_func.decorators:
return _False
for... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,092 | safe_infer | ref | function | inferred_func = safe_infer(node.func)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,098 | safe_infer | ref | function | inferred_decorator = safe_infer(decorator)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,101 | qname | ref | function | if inferred_decorator.qname() != ASYNCIO_COROUTINE:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,106 | _check_iterable | def | function | null |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,107 | is_inside_abstract_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,109 | safe_infer | ref | function | inferred = safe_infer(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,110 | is_comprehension | ref | function | if not inferred or is_comprehension(inferred):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,112 | is_iterable | ref | function | if not is_iterable(inferred, check_async=check_async):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,113 | add_message | ref | function | self.add_message("not-an-iterable", args=node.as_string(), node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,113 | as_string | ref | function | self.add_message("not-an-iterable", args=node.as_string(), node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,115 | _check_mapping | def | function | def _check_mapping(self, node):
if is_inside_abstract_class(node):
return
if isinstance(node, nodes.DictComp):
return
inferred = safe_infer(node)
if inferred is None or inferred is astroid.Uninferable:
return
if not is_mapping(inferred):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,116 | is_inside_abstract_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,120 | safe_infer | ref | function | inferred = safe_infer(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,123 | is_mapping | ref | function | if not is_mapping(inferred):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,124 | add_message | ref | function | self.add_message("not-a-mapping", args=node.as_string(), node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,124 | as_string | ref | function | self.add_message("not-a-mapping", args=node.as_string(), node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,126 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,127 | visit_for | def | function | def visit_for(self, node: nodes.For) -> None:
if not isinstance(node.target, nodes.Tuple):
# target is not a tuple
return
if not len(node.target.elts) == 2:
# target is not a tuple of two elements
return
iterable = node.iter
if not isi... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,128 | _check_iterable | ref | function | self._check_iterable(node.iter)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,130 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,131 | visit_asyncfor | def | function | def visit_asyncfor(self, node: nodes.AsyncFor) -> None:
self._check_iterable(node.iter, check_async=_True)
@only_required_for_messages("not-an-iterable")
def visit_yieldfrom(self, node: nodes.YieldFrom) -> None:
if self._is_asyncio_coroutine(node.value):
return
self._che... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,132 | _check_iterable | ref | function | self._check_iterable(node.iter, check_async=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,134 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,135 | visit_yieldfrom | def | function | def visit_yieldfrom(self, node: nodes.YieldFrom) -> None:
if self._is_asyncio_coroutine(node.value):
return
self._check_iterable(node.value)
@only_required_for_messages("not-an-iterable", "not-a-mapping")
def visit_call(self, node: nodes.Call) -> None:
for stararg in nod... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,136 | _is_asyncio_coroutine | ref | function | if self._is_asyncio_coroutine(node.value):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,138 | _check_iterable | ref | function | self._check_iterable(node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,140 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable", "not-a-mapping")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,141 | 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 | 2,143 | _check_iterable | ref | function | self._check_iterable(stararg.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,145 | _check_mapping | ref | function | self._check_mapping(kwarg.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,147 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,148 | visit_listcomp | def | function | def visit_listcomp(self, node: nodes.ListComp) -> None:
for gen in node.generators:
self._check_iterable(gen.iter, check_async=gen.is_async)
@only_required_for_messages("not-an-iterable")
def visit_dictcomp(self, node: nodes.DictComp) -> None:
for gen in node.generators:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,150 | _check_iterable | ref | function | self._check_iterable(gen.iter, check_async=gen.is_async)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,152 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,153 | visit_dictcomp | def | function | def visit_dictcomp(self, node: nodes.DictComp) -> None:
for gen in node.generators:
self._check_iterable(gen.iter, check_async=gen.is_async)
@only_required_for_messages("not-an-iterable")
def visit_setcomp(self, node: nodes.SetComp) -> None:
for gen in node.generators:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,155 | _check_iterable | ref | function | self._check_iterable(gen.iter, check_async=gen.is_async)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/typecheck.py | pylint/checkers/typecheck.py | 2,157 | only_required_for_messages | ref | function | @only_required_for_messages("not-an-iterable")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.