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/similar.py | pylint/checkers/similar.py | 872 | usage | def | function | def usage(status=0):
"""Display command line usage information."""
print("finds copy pasted blocks in a set of files")
print()
print(
"Usage: symilar [-d|--duplicates min_duplicated_lines] \
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 883 | Run | def | function | def Run(argv=None) -> NoReturn:
"""Standalone command line access point."""
if argv is None:
argv = sys.argv[1:]
s_opts = "hdi"
l_opts = [
"help",
"duplicates=",
"ignore-comments",
"ignore-imports",
"ignore-docstrings",
"ignore-signatures",
]
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 907 | usage | ref | function | usage()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 917 | usage | ref | function | usage(1)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 918 | Similar | ref | function | sim = Similar(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 923 | append_stream | ref | function | sim.append_stream(filename, stream)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 924 | run | ref | function | sim.run()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/similar.py | pylint/checkers/similar.py | 929 | Run | ref | function | Run()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 34 | EmailFilter | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 37 | URLFilter | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 40 | WikiWordFilter | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 43 | Filter | def | class | _skip |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 44 | _skip | def | function | def _skip(self, word):
raise NotImplementedError
class Chunker: # type: ignore[no-redef]
pass
def get_tokenizer(
tag=None, chunkers=None, filters=None
): # pylint: disable=unused-argument
return Filter()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 47 | Chunker | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 50 | get_tokenizer | def | function | def get_tokenizer(
tag=None, chunkers=None, filters=None
): # pylint: disable=unused-argument
return Filter()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 53 | Filter | ref | function | return Filter()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 57 | Broker | ref | function | br = enchant.Broker()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 58 | list_dicts | ref | function | dicts = br.list_dicts()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 69 | WordsWithDigitsFilter | def | class | _skip |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 72 | _skip | def | function | def _skip(self, word):
raise NotImplementedError
class Chunker: # type: ignore[no-redef]
pass
def get_tokenizer(
tag=None, chunkers=None, filters=None
): # pylint: disable=unused-argument
return Filter()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 76 | WordsWithUnderscores | def | class | _skip |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 82 | _skip | def | function | def _skip(self, word):
raise NotImplementedError
class Chunker: # type: ignore[no-redef]
pass
def get_tokenizer(
tag=None, chunkers=None, filters=None
): # pylint: disable=unused-argument
return Filter()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 86 | RegExFilter | def | class | _skip |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 96 | _skip | def | function | def _skip(self, word) -> bool:
return bool(self._pattern.match(word))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 100 | CamelCasedWord | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 111 | SphinxDirectives | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 123 | ForwardSlashChunker | def | class | next _next |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 149 | _next | def | function | def _next(self):
while _True:
if "/" not in self._text:
return self._text, 0
pre_text, post_text = self._text.split("/", 1)
if not pre_text or not post_text:
break
if not pre_text[-1].isalpha() or not post_text[0].isalpha():
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 165 | _strip_code_flanked_in_backticks | def | function | def _strip_code_flanked_in_backticks(line: str) -> str:
"""Alter line so code flanked in back-ticks is ignored.
Pyenchant automatically strips back-ticks when parsing tokens,
so this cannot be done at the individual filter level.
"""
def replace_code_but_leave_surrounding_characters(match_obj) -> ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 172 | replace_code_but_leave_surrounding_characters | def | function | def replace_code_but_leave_surrounding_characters(match_obj) -> str:
return match_obj.group(1) + match_obj.group(5)
return CODE_FLANKED_IN_BACKTICK_REGEX.sub(
replace_code_but_leave_surrounding_characters, line
)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 180 | SpellingChecker | def | class | open _check_spelling process_tokens visit_module visit_classdef visit_functiondef _check_docstring |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 289 | DictWithPWL | ref | function | self.spelling_dict = enchant.DictWithPWL(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 293 | Dict | ref | function | self.spelling_dict = enchant.Dict(dict_name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 298 | get_tokenizer | ref | function | self.tokenizer = get_tokenizer(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 313 | _check_spelling | def | function | def _check_spelling(self, msgid: str, line: str, line_num: int) -> None:
original_line = line
try:
# The mypy warning is caught by the except statement
initial_space = re.search(r"^\s+", line).regs[0][1] # type: ignore[union-attr]
except (IndexError, AttributeError):... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 333 | _strip_code_flanked_in_backticks | ref | function | line = _strip_code_flanked_in_backticks(line)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 335 | tokenizer | ref | function | for word, word_start_at in self.tokenizer(line.strip()):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 350 | check | ref | function | if self.spelling_dict.check(lower_cased_word):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 357 | check | ref | function | if self.spelling_dict.check(word):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 360 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 373 | write | ref | function | f.write(f"{lower_cased_word}\n")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 377 | suggest | ref | function | suggestions = self.spelling_dict.suggest(word)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 392 | add_message | ref | function | self.add_message(msgid, line=line_num, args=args)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 394 | process_tokens | def | function | def process_tokens(self, tokens: list[tokenize.TokenInfo]) -> None:
if not self.initialized:
return
# Process tokens and look for comments.
for (tok_type, token, (start_row, _), _, _) in tokens:
if tok_type == tokenize.COMMENT:
if start_row == 1 and t... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 407 | _check_spelling | ref | function | self._check_spelling("wrong-spelling-in-comment", token, start_row)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 409 | only_required_for_messages | ref | function | @only_required_for_messages("wrong-spelling-in-docstring")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 410 | visit_module | def | function | def visit_module(self, node: nodes.Module) -> None:
if not self.initialized:
return
self._check_docstring(node)
@only_required_for_messages("wrong-spelling-in-docstring")
def visit_classdef(self, node: nodes.ClassDef) -> None:
if not self.initialized:
return
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 413 | _check_docstring | ref | function | self._check_docstring(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 415 | only_required_for_messages | ref | function | @only_required_for_messages("wrong-spelling-in-docstring")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 416 | visit_classdef | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 419 | _check_docstring | ref | function | self._check_docstring(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 421 | only_required_for_messages | ref | function | @only_required_for_messages("wrong-spelling-in-docstring")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 422 | visit_functiondef | def | function | def visit_functiondef(
self, node: nodes.FunctionDef | nodes.AsyncFunctionDef
) -> None:
if not self.initialized:
return
self._check_docstring(node)
visit_asyncfunctiondef = visit_functiondef
def _check_docstring(
self,
node: nodes.FunctionDef
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 427 | _check_docstring | ref | function | self._check_docstring(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 431 | _check_docstring | def | function | def _check_docstring(
self,
node: nodes.FunctionDef
| nodes.AsyncFunctionDef
| nodes.ClassDef
| nodes.Module,
) -> None:
"""Check the node has any spelling errors."""
if not node.doc_node:
return
start_line = node.lineno + 1
#... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 446 | _check_spelling | ref | function | self._check_spelling("wrong-spelling-in-docstring", line, start_line + idx)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 449 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(SpellingChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 450 | register_checker | ref | function | linter.register_checker(SpellingChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/spelling.py | pylint/checkers/spelling.py | 450 | SpellingChecker | ref | function | linter.register_checker(SpellingChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 301 | _check_mode_str | def | function | def _check_mode_str(mode):
# check type
if not isinstance(mode, str):
return _False
# check syntax
modes = set(mode)
_mode = "rwatb+Ux"
creating = "x" in modes
if modes - set(_mode) or len(mode) > len(modes):
return _False
# check logic
reading = "r" in modes
writ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 331 | StdlibChecker | def | class | __init__ _check_bad_thread_instantiation _check_for_preexec_fn_in_popen _check_for_check_kw_in_run _check_shallow_copy_environ visit_call visit_unaryop visit_if visit_ifexp visit_boolop visit_functiondef _check_lru_cache_decorators _check_redundant_assert _check_datetime _check_open_call _check_env_function _check_inva... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 456 | _check_bad_thread_instantiation | def | function | def _check_bad_thread_instantiation(self, node):
if not node.kwargs and not node.keywords and len(node.args) <= 1:
self.add_message("bad-thread-instantiation", node=node)
def _check_for_preexec_fn_in_popen(self, node):
if node.keywords:
for keyword in node.keywords:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 458 | add_message | ref | function | self.add_message("bad-thread-instantiation", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 460 | _check_for_preexec_fn_in_popen | def | function | def _check_for_preexec_fn_in_popen(self, node):
if node.keywords:
for keyword in node.keywords:
if keyword.arg == "preexec_fn":
self.add_message("subprocess-popen-preexec-fn", node=node)
def _check_for_check_kw_in_run(self, node):
kwargs = {keywor... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 464 | add_message | ref | function | self.add_message("subprocess-popen-preexec-fn", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 466 | _check_for_check_kw_in_run | def | function | def _check_for_check_kw_in_run(self, node):
kwargs = {keyword.arg for keyword in (node.keywords or ())}
if "check" not in kwargs:
self.add_message("subprocess-run-check", node=node)
def _check_shallow_copy_environ(self, node: nodes.Call) -> None:
arg = utils.get_argument_fro... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 469 | add_message | ref | function | self.add_message("subprocess-run-check", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 471 | _check_shallow_copy_environ | def | function | def _check_shallow_copy_environ(self, node: nodes.Call) -> None:
arg = utils.get_argument_from_call(node, position=0)
try:
inferred_args = arg.inferred()
except astroid.InferenceError:
return
for inferred in inferred_args:
if inferred.qname() == OS... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 472 | get_argument_from_call | ref | function | arg = utils.get_argument_from_call(node, position=0)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 474 | inferred | ref | function | inferred_args = arg.inferred()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 478 | qname | ref | function | if inferred.qname() == OS_ENVIRON:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 479 | add_message | ref | function | self.add_message("shallow-copy-environ", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 482 | only_required_for_messages | ref | function | @utils.only_required_for_messages(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 497 | visit_call | def | function | def visit_call(self, node: nodes.Call) -> None:
"""Visit a Call node."""
self.check_deprecated_class_in_call(node)
for inferred in utils.infer_all(node.func):
if inferred is astroid.Uninferable:
continue
if inferred.root().name in OPEN_MODULE:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 499 | check_deprecated_class_in_call | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 500 | infer_all | ref | function | for inferred in utils.infer_all(node.func):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 503 | root | ref | function | if inferred.root().name in OPEN_MODULE:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 510 | _check_open_call | ref | function | self._check_open_call(node, inferred.root().name, open_func_name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 510 | root | ref | function | self._check_open_call(node, inferred.root().name, open_func_name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 511 | root | ref | function | elif inferred.root().name == UNITTEST_CASE:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 512 | _check_redundant_assert | ref | function | self._check_redundant_assert(node, inferred)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 514 | qname | ref | function | if inferred.qname() == THREADING_THREAD:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 515 | _check_bad_thread_instantiation | ref | function | self._check_bad_thread_instantiation(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 516 | qname | ref | function | elif inferred.qname() == SUBPROCESS_POPEN:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 517 | _check_for_preexec_fn_in_popen | ref | function | self._check_for_preexec_fn_in_popen(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 519 | qname | ref | function | name = inferred.qname()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 521 | _check_shallow_copy_environ | ref | function | self._check_shallow_copy_environ(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 523 | _check_env_function | ref | function | self._check_env_function(node, inferred)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 525 | _check_for_check_kw_in_run | ref | function | self._check_for_check_kw_in_run(node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 527 | add_message | ref | function | self.add_message("forgotten-debug-statement", node=node)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 528 | check_deprecated_method | ref | function | self.check_deprecated_method(node, inferred)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 530 | only_required_for_messages | ref | function | @utils.only_required_for_messages("boolean-datetime")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 531 | visit_unaryop | def | function | def visit_unaryop(self, node: nodes.UnaryOp) -> None:
if node.op == "not":
self._check_datetime(node.operand)
@utils.only_required_for_messages("boolean-datetime")
def visit_if(self, node: nodes.If) -> None:
self._check_datetime(node.test)
@utils.only_required_for_messages(... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 533 | _check_datetime | ref | function | self._check_datetime(node.operand)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 535 | only_required_for_messages | ref | function | @utils.only_required_for_messages("boolean-datetime")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 536 | visit_if | def | function | def visit_if(self, node: nodes.If) -> None:
self._check_datetime(node.test)
@utils.only_required_for_messages("boolean-datetime")
def visit_ifexp(self, node: nodes.IfExp) -> None:
self._check_datetime(node.test)
@utils.only_required_for_messages("boolean-datetime")
def visit_boolop... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 537 | _check_datetime | ref | function | self._check_datetime(node.test)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 539 | only_required_for_messages | ref | function | @utils.only_required_for_messages("boolean-datetime")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 540 | visit_ifexp | def | function | def visit_ifexp(self, node: nodes.IfExp) -> None:
self._check_datetime(node.test)
@utils.only_required_for_messages("boolean-datetime")
def visit_boolop(self, node: nodes.BoolOp) -> None:
for value in node.values:
self._check_datetime(value)
@utils.only_required_for_message... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/checkers/stdlib.py | pylint/checkers/stdlib.py | 541 | _check_datetime | ref | function | self._check_datetime(node.test)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.