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/docparams.py | pylint/extensions/docparams.py | 326 | decorated_with_property | ref | function | is_property = checker_utils.decorated_with_property(func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 328 | has_returns | ref | function | if not (doc.has_returns() or (doc.has_property_returns() and is_property)):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 328 | has_property_returns | ref | function | if not (doc.has_returns() or (doc.has_property_returns() and is_property)):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 329 | add_message | ref | function | self.add_message("missing-return-doc", node=func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 334 | has_rtype | ref | function | if not (doc.has_rtype() or (doc.has_property_type() and is_property)):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 334 | has_property_type | ref | function | if not (doc.has_rtype() or (doc.has_property_type() and is_property)):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 335 | add_message | ref | function | self.add_message("missing-return-type-doc", node=func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 337 | visit_yield | def | function | def visit_yield(self, node: nodes.Yield) -> None:
if self.linter.config.accept_no_yields_doc:
return
func_node = node.frame(future=_True)
if not isinstance(func_node, astroid.FunctionDef):
return
doc = utils.docstringify(
func_node.doc_node, self... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 341 | frame | ref | function | func_node = node.frame(future=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 345 | docstringify | ref | function | doc = utils.docstringify(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 350 | has_yields | ref | function | doc_has_yields = doc.has_yields()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 351 | has_yields_type | ref | function | doc_has_yields_type = doc.has_yields_type()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 353 | has_returns | ref | function | doc_has_yields = doc.has_returns()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 354 | has_rtype | ref | function | doc_has_yields_type = doc.has_rtype()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 357 | add_message | ref | function | self.add_message("missing-yield-doc", node=func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 360 | add_message | ref | function | self.add_message("missing-yield-type-doc", node=func_node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 362 | visit_yieldfrom | def | function | def visit_yieldfrom(self, node: nodes.YieldFrom) -> None:
self.visit_yield(node)
def _compare_missing_args(
self,
found_argument_names: set[str],
message_id: str,
not_needed_names: set[str],
expected_argument_names: set[str],
warning_node: nodes.NodeNG,
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 363 | visit_yield | ref | function | self.visit_yield(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 365 | _compare_missing_args | def | function | def _compare_missing_args(
self,
found_argument_names: set[str],
message_id: str,
not_needed_names: set[str],
expected_argument_names: set[str],
warning_node: nodes.NodeNG,
) -> None:
"""Compare the found argument names with the expected ones and
g... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 398 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 404 | _compare_different_args | def | function | def _compare_different_args(
self,
found_argument_names: set[str],
message_id: str,
not_needed_names: set[str],
expected_argument_names: set[str],
warning_node: nodes.NodeNG,
) -> None:
"""Compare the found argument names with the expected ones and
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 440 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 446 | _compare_ignored_args | def | function | def _compare_ignored_args(
self,
found_argument_names,
message_id,
ignored_argument_names,
warning_node,
):
"""Compare the found argument names with the ignored ones and
generate a message if there are ignored arguments found.
:param found_argumen... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 471 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 477 | check_arguments_in_docstring | def | function | def check_arguments_in_docstring(
self,
doc: Docstring,
arguments_node: astroid.Arguments,
warning_node: astroid.NodeNG,
accept_no_param_doc: bool | None = None,
):
"""Check that all parameters are consistent with the parameters mentioned
in the parameter ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 521 | params_documented_elsewhere | ref | function | tolerate_missing_params = doc.params_documented_elsewhere()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 543 | match_param_docs | ref | function | params_with_doc, params_with_type = doc.match_param_docs()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 551 | _compare_ignored_args | ref | function | self._compare_ignored_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 575 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 581 | _compare_missing_args | ref | function | self._compare_missing_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 589 | _compare_missing_args | ref | function | self._compare_missing_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 597 | _compare_different_args | ref | function | self._compare_different_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 604 | _compare_different_args | ref | function | self._compare_different_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 611 | _compare_ignored_args | ref | function | self._compare_ignored_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 618 | check_single_constructor_params | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 619 | has_params | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 619 | has_params | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 620 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 624 | _handle_no_raise_doc | def | function | def _handle_no_raise_doc(self, excs, node):
if self.linter.config.accept_no_raise_doc:
return
self._add_raise_message(excs, node)
def _add_raise_message(self, missing_excs, node):
"""Adds a message on :param:`node` for the missing exception type.
:param missing_exc... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 628 | _add_raise_message | ref | function | self._add_raise_message(excs, node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 630 | _add_raise_message | def | function | def _add_raise_message(self, missing_excs, node):
"""Adds a message on :param:`node` for the missing exception type.
:param missing_excs: A list of missing exception types.
:type missing_excs: set(str)
:param node: The node show the message on.
:type node: nodes.NodeNG
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 639 | is_abstract | ref | function | if node.is_abstract():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 648 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 653 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(DocstringParameterChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 654 | register_checker | ref | function | linter.register_checker(DocstringParameterChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docparams.py | pylint/extensions/docparams.py | 654 | DocstringParameterChecker | ref | function | linter.register_checker(DocstringParameterChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 19 | DocStringStyleChecker | def | class | visit_module visit_classdef visit_functiondef _check_docstring |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 37 | only_required_for_messages | ref | function | @only_required_for_messages("docstring-first-line-empty", "bad-docstring-quotes")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 38 | visit_module | def | function | def visit_module(self, node: nodes.Module) -> None:
self._check_docstring("module", node)
def visit_classdef(self, node: nodes.ClassDef) -> None:
self._check_docstring("class", node)
def visit_functiondef(self, node: nodes.FunctionDef) -> None:
ftype = "method" if node.is_method() ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 39 | _check_docstring | ref | function | self._check_docstring("module", node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 41 | visit_classdef | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 42 | _check_docstring | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 44 | visit_functiondef | def | function | def visit_functiondef(self, node: nodes.FunctionDef) -> None:
ftype = "method" if node.is_method() else "function"
self._check_docstring(ftype, node)
visit_asyncfunctiondef = visit_functiondef
def _check_docstring(self, node_type, node):
docstring = node.doc_node.value if node.doc_... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 45 | is_method | ref | function | ftype = "method" if node.is_method() else "function"
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 46 | _check_docstring | ref | function | self._check_docstring(ftype, node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 50 | _check_docstring | def | function | def _check_docstring(self, node_type, node):
docstring = node.doc_node.value if node.doc_node else None
if docstring and docstring[0] == "\n":
self.add_message(
"docstring-first-line-empty",
node=node,
args=(node_type,),
con... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 53 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 65 | root | ref | function | line = linecache.getline(node.root().file, lineno).lstrip()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 77 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 85 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(DocStringStyleChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 86 | register_checker | ref | function | linter.register_checker(DocStringStyleChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/docstyle.py | pylint/extensions/docstyle.py | 86 | DocStringStyleChecker | ref | function | linter.register_checker(DocStringStyleChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 16 | is_line_commented | def | function | def is_line_commented(line):
"""Checks if a `# symbol that is not part of a string was found in line."""
comment_idx = line.find(b"#")
if comment_idx == -1:
return _False
if comment_part_of_string(line, comment_idx):
return is_line_commented(line[:comment_idx] + line[comment_idx + 1 :])... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 22 | comment_part_of_string | ref | function | if comment_part_of_string(line, comment_idx):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 23 | is_line_commented | ref | function | return is_line_commented(line[:comment_idx] + line[comment_idx + 1 :])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 27 | comment_part_of_string | def | function | def comment_part_of_string(line, comment_idx):
"""Checks if the symbol at comment_idx is part of a string."""
if (
line[:comment_idx].count(b"'") % 2 == 1
and line[comment_idx:].count(b"'") % 2 == 1
) or (
line[:comment_idx].count(b'"') % 2 == 1
and line[comment_idx:].count(... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 41 | CommentChecker | def | class | process_module |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 55 | process_module | def | function | def process_module(self, node: nodes.Module) -> None:
with node.stream() as stream:
for (line_num, line) in enumerate(stream):
line = line.rstrip()
if line.endswith(b"#"):
if not is_line_commented(line[:-1]):
self.add_me... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 56 | stream | ref | function | with node.stream() as stream:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 60 | is_line_commented | ref | function | if not is_line_commented(line[:-1]):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 61 | add_message | ref | function | self.add_message("empty-comment", line=line_num + 1)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 64 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(CommentChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 65 | register_checker | ref | function | linter.register_checker(CommentChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/empty_comment.py | pylint/extensions/empty_comment.py | 65 | CommentChecker | ref | function | linter.register_checker(CommentChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 21 | CompareToEmptyStringChecker | def | class | visit_compare |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 41 | only_required_for_messages | ref | function | @utils.only_required_for_messages("compare-to-empty-string")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 42 | 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/emptystring.py | pylint/extensions/emptystring.py | 60 | is_empty_str_literal | ref | function | if utils.is_empty_str_literal(op_1) and op_2 in _operators:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 63 | is_empty_str_literal | ref | function | elif op_2 in _operators and utils.is_empty_str_literal(op_3):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 67 | add_message | ref | function | self.add_message("compare-to-empty-string", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 70 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(CompareToEmptyStringChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 71 | register_checker | ref | function | linter.register_checker(CompareToEmptyStringChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/emptystring.py | pylint/extensions/emptystring.py | 71 | CompareToEmptyStringChecker | ref | function | linter.register_checker(CompareToEmptyStringChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 18 | EqWithoutHash | def | class | visit_classdef |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 31 | only_required_for_messages | ref | function | @utils.only_required_for_messages("eq-without-hash")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 32 | visit_classdef | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 33 | mymethods | ref | function | locals_and_methods = set(node.locals).union(x.name for x in node.mymethods())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 35 | add_message | ref | function | self.add_message("eq-without-hash", node=node, confidence=interfaces.HIGH)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 38 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(EqWithoutHash(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 39 | register_checker | ref | function | linter.register_checker(EqWithoutHash(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/eq_without_hash.py | pylint/extensions/eq_without_hash.py | 39 | EqWithoutHash | ref | function | linter.register_checker(EqWithoutHash(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 19 | ConsiderUsingAnyOrAllChecker | def | class | visit_for _build_suggested_string |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 30 | only_required_for_messages | ref | function | @only_required_for_messages("consider-using-any-or-all")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 31 | visit_for | def | function | def visit_for(self, node: nodes.For) -> None:
if len(node.body) != 1: # Only If node with no Else
return
if not isinstance(node.body[0], nodes.If):
return
if_children = list(node.body[0].get_children())
if not len(if_children) == 2: # The If node has only a... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 37 | get_children | ref | function | if_children = list(node.body[0].get_children())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 40 | returns_bool | ref | function | if not returns_bool(if_children[1]):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 44 | next_sibling | ref | function | node_after_loop = node.next_sibling()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 45 | returns_bool | ref | function | if returns_bool(node_after_loop):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 47 | _build_suggested_string | ref | function | suggested_string = self._build_suggested_string(node, final_return_bool)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/for_any_all.py | pylint/extensions/for_any_all.py | 48 | add_message | ref | function | self.add_message(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.