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/extensions/code_style.py | pylint/extensions/code_style.py | 129 | as_string | ref | function | key_tuple = (type(key), key.as_string())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 132 | safe_infer | ref | function | inferred = safe_infer(key)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 135 | pytype | ref | function | and inferred.pytype() == "builtins.str"
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 145 | as_string | ref | function | tuple((type(key), key.as_string()) for key, _ in dict_value.items)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 153 | add_message | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 176 | add_message | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 179 | _check_consider_using_assignment_expr | def | function | def _check_consider_using_assignment_expr(self, node: nodes.If) -> None:
"""Check if an assignment expression (walrus operator) can be used.
For example if an assignment is directly followed by an if statement:
>>> x = 2
>>> if x:
>>> ...
Can be replaced by:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 214 | previous_sibling | ref | function | prev_sibling = node.previous_sibling()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 215 | _check_prev_sibling_to_if_stmt | ref | function | if CodeStyleChecker._check_prev_sibling_to_if_stmt(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 221 | _check_ignore_assignment_expr_suggestion | ref | function | if CodeStyleChecker._check_ignore_assignment_expr_suggestion(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 228 | as_string | ref | function | test_str = node.test.as_string().replace(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 230 | as_string | ref | function | f"({node_name.name} := {prev_sibling.value.as_string()})",
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 241 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 248 | _check_prev_sibling_to_if_stmt | def | function | def _check_prev_sibling_to_if_stmt(
prev_sibling: nodes.NodeNG | None, name: str | None
) -> TypeGuard[nodes.Assign | nodes.AnnAssign]:
"""Check if previous sibling is an assignment with the same name.
Ignore statements which span multiple lines.
"""
if prev_sibling is N... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 274 | _check_ignore_assignment_expr_suggestion | def | function | def _check_ignore_assignment_expr_suggestion(
node: nodes.If, name: str | None
) -> bool:
"""Return _True if suggestion for assignment expr should be ignored.
E.g., in cases where a match statement would be a better fit
(multiple conditions).
"""
if isinstance(no... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 284 | next_sibling | ref | function | next_sibling = node.next_sibling()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 306 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(CodeStyleChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 307 | register_checker | ref | function | linter.register_checker(CodeStyleChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/code_style.py | pylint/extensions/code_style.py | 307 | CodeStyleChecker | ref | function | linter.register_checker(CodeStyleChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 22 | _is_constant_zero | def | function | def _is_constant_zero(node):
return isinstance(node, astroid.Const) and node.value == 0
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 26 | CompareToZeroChecker | def | class | visit_compare |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 46 | only_required_for_messages | ref | function | @utils.only_required_for_messages("compare-to-zero")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 47 | visit_compare | def | function | def visit_compare(self, node: nodes.Compare) -> None:
_operators = ["!=", "==", "is not", "is"]
# note: astroid.Compare has the left most operand in node.left
# while the rest are a list of tuples in node.ops
# the format of the tuple is ('compare operator sign', node)
# here... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 65 | _is_constant_zero | ref | function | if _is_constant_zero(op_1) and op_2 in _operators:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 68 | _is_constant_zero | ref | function | elif op_2 in _operators and _is_constant_zero(op_3):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 72 | add_message | ref | function | self.add_message("compare-to-zero", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 75 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(CompareToZeroChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 76 | register_checker | ref | function | linter.register_checker(CompareToZeroChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparetozero.py | pylint/extensions/comparetozero.py | 76 | CompareToZeroChecker | ref | function | linter.register_checker(CompareToZeroChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 23 | MisplacedComparisonConstantChecker | def | class | _check_misplaced_constant visit_compare |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 41 | _check_misplaced_constant | def | function | def _check_misplaced_constant(
self,
node: nodes.Compare,
left: nodes.NodeNG,
right: nodes.NodeNG,
operator: str,
):
if isinstance(right, nodes.Const):
return
operator = REVERSED_COMPS.get(operator, operator)
suggestion = f"{right.as_st... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 51 | as_string | ref | function | suggestion = f"{right.as_string()} {operator} {left.value!r}"
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 52 | add_message | ref | function | self.add_message("misplaced-comparison-constant", node=node, args=(suggestion,))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 54 | only_required_for_messages | ref | function | @utils.only_required_for_messages("misplaced-comparison-constant")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 55 | visit_compare | def | function | def visit_compare(self, node: nodes.Compare) -> None:
# NOTE: this checker only works with binary comparisons like 'x == 42'
# but not 'x == y == 42'
if len(node.ops) != 1:
return
left = node.left
operator, right = node.ops[0]
if operator in COMPARISON_OP... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 64 | _check_misplaced_constant | ref | function | self._check_misplaced_constant(node, left, right, operator)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 67 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(MisplacedComparisonConstantChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 68 | register_checker | ref | function | linter.register_checker(MisplacedComparisonConstantChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/comparison_placement.py | pylint/extensions/comparison_placement.py | 68 | MisplacedComparisonConstantChecker | ref | function | linter.register_checker(MisplacedComparisonConstantChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 17 | ConfusingConsecutiveElifChecker | def | class | visit_if _has_no_else_clause |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 31 | only_required_for_messages | ref | function | @only_required_for_messages("confusing-consecutive-elif")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 32 | visit_if | def | function | def visit_if(self, node: nodes.If) -> None:
body_ends_with_if = isinstance(
node.body[-1], nodes.If
) and self._has_no_else_clause(node.body[-1])
if node.has_elif_block() and body_ends_with_if:
self.add_message("confusing-consecutive-elif", node=node.orelse[0])
@... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 35 | _has_no_else_clause | ref | function | ) and self._has_no_else_clause(node.body[-1])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 36 | has_elif_block | ref | function | if node.has_elif_block() and body_ends_with_if:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 37 | add_message | ref | function | self.add_message("confusing-consecutive-elif", node=node.orelse[0])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 40 | _has_no_else_clause | def | function | def _has_no_else_clause(node: nodes.If):
orelse = node.orelse
while orelse and isinstance(orelse[0], nodes.If):
orelse = orelse[0].orelse
if not orelse or isinstance(orelse[0], nodes.If):
return _True
return _False
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 49 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(ConfusingConsecutiveElifChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 50 | register_checker | ref | function | linter.register_checker(ConfusingConsecutiveElifChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/confusing_elif.py | pylint/extensions/confusing_elif.py | 50 | ConfusingConsecutiveElifChecker | ref | function | linter.register_checker(ConfusingConsecutiveElifChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/consider_ternary_expression.py | pylint/extensions/consider_ternary_expression.py | 18 | ConsiderTernaryExpressionChecker | def | class | visit_if |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/consider_ternary_expression.py | pylint/extensions/consider_ternary_expression.py | 30 | visit_if | def | function | def visit_if(self, node: nodes.If) -> None:
if isinstance(node.parent, nodes.If):
return
if len(node.body) != 1 or len(node.orelse) != 1:
return
bst = node.body[0]
ost = node.orelse[0]
if not isinstance(bst, nodes.Assign) or not isinstance(ost, node... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/consider_ternary_expression.py | pylint/extensions/consider_ternary_expression.py | 52 | add_message | ref | function | self.add_message("consider-ternary-expression", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/consider_ternary_expression.py | pylint/extensions/consider_ternary_expression.py | 55 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(ConsiderTernaryExpressionChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/consider_ternary_expression.py | pylint/extensions/consider_ternary_expression.py | 56 | register_checker | ref | function | linter.register_checker(ConsiderTernaryExpressionChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/consider_ternary_expression.py | pylint/extensions/consider_ternary_expression.py | 56 | ConsiderTernaryExpressionChecker | ref | function | linter.register_checker(ConsiderTernaryExpressionChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 23 | DocstringParameterChecker | def | class | visit_functiondef check_functiondef_params check_functiondef_returns check_functiondef_yields visit_raise visit_return visit_yield visit_yieldfrom _compare_missing_args _compare_different_args _compare_ignored_args check_arguments_in_docstring check_single_constructor_params _handle_no_raise_doc _add_raise_message |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 191 | visit_functiondef | def | function | def visit_functiondef(self, node: nodes.FunctionDef) -> None:
"""Called for function and method definitions (def).
:param node: Node for a function or method definition in the AST
:type node: :class:`astroid.scoped_nodes.Function`
"""
node_doc = utils.docstringify(
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 197 | docstringify | ref | function | node_doc = utils.docstringify(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 207 | get_node_last_lineno | ref | function | lines = checker_utils.get_node_last_lineno(node) - node.lineno
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 212 | check_functiondef_params | ref | function | self.check_functiondef_params(node, node_doc)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 213 | check_functiondef_returns | ref | function | self.check_functiondef_returns(node, node_doc)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 214 | check_functiondef_yields | ref | function | self.check_functiondef_yields(node, node_doc)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 218 | check_functiondef_params | def | function | def check_functiondef_params(self, node, node_doc):
node_allow_no_param = None
if node.name in self.constructor_names:
class_node = checker_utils.node_frame_class(node)
if class_node is not None:
class_doc = utils.docstringify(
class_node.d... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 221 | node_frame_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 223 | docstringify | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 226 | check_single_constructor_params | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 231 | has_params | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 232 | params_documented_elsewhere | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 236 | has_params | ref | function | node_doc.has_params()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 237 | params_documented_elsewhere | ref | function | or node_doc.params_documented_elsewhere()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 241 | check_arguments_in_docstring | ref | function | self.check_arguments_in_docstring(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 245 | check_arguments_in_docstring | ref | function | self.check_arguments_in_docstring(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 249 | check_functiondef_returns | def | function | def check_functiondef_returns(self, node, node_doc):
if (not node_doc.supports_yields and node.is_generator()) or node.is_abstract():
return
return_nodes = node.nodes_of_class(astroid.Return)
if (node_doc.has_returns() or node_doc.has_rtype()) and not any(
utils.retu... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 250 | is_generator | ref | function | if (not node_doc.supports_yields and node.is_generator()) or node.is_abstract():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 250 | is_abstract | ref | function | if (not node_doc.supports_yields and node.is_generator()) or node.is_abstract():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 253 | nodes_of_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 254 | has_returns | ref | function | if (node_doc.has_returns() or node_doc.has_rtype()) and not any(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 254 | has_rtype | ref | function | if (node_doc.has_returns() or node_doc.has_rtype()) and not any(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 255 | returns_something | ref | function | utils.returns_something(ret_node) for ret_node in return_nodes
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 257 | add_message | ref | function | self.add_message("redundant-returns-doc", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 259 | check_functiondef_yields | def | function | def check_functiondef_yields(self, node, node_doc):
if not node_doc.supports_yields or node.is_abstract():
return
if (
node_doc.has_yields() or node_doc.has_yields_type()
) and not node.is_generator():
self.add_message("redundant-yields-doc", node=node)
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 260 | is_abstract | ref | function | if not node_doc.supports_yields or node.is_abstract():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 264 | has_yields | ref | function | node_doc.has_yields() or node_doc.has_yields_type()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 264 | has_yields_type | ref | function | node_doc.has_yields() or node_doc.has_yields_type()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 265 | is_generator | ref | function | ) and not node.is_generator():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 266 | add_message | ref | function | self.add_message("redundant-yields-doc", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 268 | visit_raise | def | function | def visit_raise(self, node: nodes.Raise) -> None:
func_node = node.frame(future=_True)
if not isinstance(func_node, astroid.FunctionDef):
return
expected_excs = utils.possible_exc_types(node)
if not expected_excs:
return
if not func_node.doc_node:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 269 | frame | ref | function | func_node = node.frame(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 273 | possible_exc_types | ref | function | expected_excs = utils.possible_exc_types(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 281 | get_setters_property | ref | function | property_ = utils.get_setters_property(func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 285 | docstringify | ref | function | doc = utils.docstringify(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 288 | matching_sections | ref | function | if not doc.matching_sections():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 291 | _handle_no_raise_doc | ref | function | self._handle_no_raise_doc(missing, func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 294 | exceptions | ref | function | found_excs_full_names = doc.exceptions()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 304 | ancestors | ref | function | if any(found_exc == ancestor.name for ancestor in expected.ancestors()):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 309 | _add_raise_message | ref | function | self._add_raise_message(missing_excs, func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 311 | visit_return | def | function | def visit_return(self, node: nodes.Return) -> None:
if not utils.returns_something(node):
return
if self.linter.config.accept_no_return_doc:
return
func_node = node.frame(future=_True)
if not isinstance(func_node, astroid.FunctionDef):
return
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 312 | returns_something | ref | function | if not utils.returns_something(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 318 | frame | ref | function | func_node = node.frame(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 322 | docstringify | ref | function | doc = utils.docstringify(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.