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/private_import.py | pylint/extensions/private_import.py | 202 | _populate_type_annotations_annotation | ref | function | return self._populate_type_annotations_annotation(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 207 | _populate_type_annotations_annotation | ref | function | return self._populate_type_annotations_annotation(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 213 | _assignments_call_private_name | def | function | def _assignments_call_private_name(
assignments: list[nodes.AnnAssign | nodes.Assign], private_name: str
) -> bool:
"""Returns _True if no assignments involve accessing `private_name`."""
if all(not assignment.value for assignment in assignments):
# Variable annotated but una... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 243 | same_root_dir | def | function | def same_root_dir(
node: nodes.Import | nodes.ImportFrom, import_mod_name: str
) -> bool:
"""Does the node's file's path contain the base name of `import_mod_name`?"""
if not import_mod_name: # from . import ...
return _True
base_import_package = import_mod_name.spl... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 252 | root | ref | function | return base_import_package in Path(node.root().file).parent.parts
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 255 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(PrivateImportChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 256 | register_checker | ref | function | linter.register_checker(PrivateImportChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/private_import.py | pylint/extensions/private_import.py | 256 | PrivateImportChecker | ref | function | linter.register_checker(PrivateImportChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 16 | RedefinedLoopName | def | class | __init__ visit_assignname visit_for leave_for |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 34 | only_required_for_messages | ref | function | @utils.only_required_for_messages("redefined-loop-name")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 35 | visit_assignname | def | function | def visit_assignname(self, node: nodes.AssignName) -> None:
assign_type = node.assign_type()
if not isinstance(assign_type, (nodes.Assign, nodes.AugAssign)):
return
node_scope = node.scope()
for outer_for, outer_variables, outer_for_scope in self._loop_variables:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 36 | assign_type | ref | function | assign_type = node.assign_type()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 39 | scope | ref | function | node_scope = node.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 43 | in_for_else_branch | ref | function | if node.name in outer_variables and not utils.in_for_else_branch(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 46 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 54 | only_required_for_messages | ref | function | @utils.only_required_for_messages("redefined-loop-name")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 55 | visit_for | def | function | def visit_for(self, node: nodes.For) -> None:
assigned_to = [a.name for a in node.target.nodes_of_class(nodes.AssignName)]
# Only check variables that are used
assigned_to = [
var
for var in assigned_to
if not self.linter.config.dummy_variables_rgx.match(v... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 56 | nodes_of_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 61 | match | ref | function | if not self.linter.config.dummy_variables_rgx.match(var)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 64 | scope | ref | function | node_scope = node.scope()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 69 | in_for_else_branch | ref | function | if variable in outer_variables and not utils.in_for_else_branch(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 72 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 80 | scope | ref | function | self._loop_variables.append((node, assigned_to, node.scope()))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 82 | only_required_for_messages | ref | function | @utils.only_required_for_messages("redefined-loop-name")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 83 | leave_for | def | function | def leave_for(self, node: nodes.For) -> None: # pylint: disable=unused-argument
self._loop_variables.pop()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 87 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(RedefinedLoopName(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 88 | register_checker | ref | function | linter.register_checker(RedefinedLoopName(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_loop_name.py | pylint/extensions/redefined_loop_name.py | 88 | RedefinedLoopName | ref | function | linter.register_checker(RedefinedLoopName(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 17 | MultipleTypesChecker | def | class | visit_classdef leave_classdef visit_module _check_and_add_messages visit_assign |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 41 | visit_classdef | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 44 | only_required_for_messages | ref | function | @only_required_for_messages("redefined-variable-type")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 45 | leave_classdef | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 46 | _check_and_add_messages | ref | function | self._check_and_add_messages()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 51 | visit_module | def | function | def visit_module(self, _: nodes.Module) -> None:
self._assigns: list[dict] = [{}]
def _check_and_add_messages(self):
assigns = self._assigns.pop()
for name, args in assigns.items():
if len(args) <= 1:
continue
orig_node, orig_type = args[0]
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 54 | _check_and_add_messages | def | function | def _check_and_add_messages(self):
assigns = self._assigns.pop()
for name, args in assigns.items():
if len(args) <= 1:
continue
orig_node, orig_type = args[0]
# Check if there is a type in the following nodes that would be
# different f... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 79 | nodes_of_class | ref | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 84 | add_message | ref | function | self.add_message(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 91 | visit_assign | def | function | def visit_assign(self, node: nodes.Assign) -> None:
# we don't handle multiple assignment nor slice assignment
target = node.targets[0]
if isinstance(target, (nodes.Tuple, nodes.Subscript)):
return
# ignore NoneType
if is_none(node):
return
_ty... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 97 | is_none | ref | function | if is_none(node):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 99 | node_type | ref | function | _type = node_type(node.value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 101 | as_string | ref | function | self._assigns[-1].setdefault(target.as_string(), []).append(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 102 | pytype | ref | function | (node, _type.pytype())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 106 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(MultipleTypesChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 107 | register_checker | ref | function | linter.register_checker(MultipleTypesChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/redefined_variable_type.py | pylint/extensions/redefined_variable_type.py | 107 | MultipleTypesChecker | ref | function | linter.register_checker(MultipleTypesChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 17 | SetMembershipChecker | def | class | __init__ visit_compare _check_in_comparison |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 33 | only_required_for_messages | ref | function | @only_required_for_messages("use-set-for-membership")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 34 | visit_compare | def | function | def visit_compare(self, node: nodes.Compare) -> None:
for op, comparator in node.ops:
if op == "in":
self._check_in_comparison(comparator)
def _check_in_comparison(self, comparator: nodes.NodeNG) -> None:
"""Checks for membership comparisons with in-place container o... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 37 | _check_in_comparison | ref | function | self._check_in_comparison(comparator)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 39 | _check_in_comparison | def | function | def _check_in_comparison(self, comparator: nodes.NodeNG) -> None:
"""Checks for membership comparisons with in-place container objects."""
if not isinstance(comparator, nodes.BaseContainer) or isinstance(
comparator, nodes.Set
):
return
# Heuristic - We need ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 48 | add_message | ref | function | self.add_message("use-set-for-membership", node=comparator)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 51 | register | def | function | def register(linter: PyLinter) -> None:
linter.register_checker(SetMembershipChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 52 | register_checker | ref | function | linter.register_checker(SetMembershipChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/set_membership.py | pylint/extensions/set_membership.py | 52 | SetMembershipChecker | ref | function | linter.register_checker(SetMembershipChecker(linter))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 25 | TypingAlias | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 31 | TypingAlias | ref | function | "typing.Tuple": TypingAlias("tuple", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 32 | TypingAlias | ref | function | "typing.List": TypingAlias("list", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 33 | TypingAlias | ref | function | "typing.Dict": TypingAlias("dict", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 34 | TypingAlias | ref | function | "typing.Set": TypingAlias("set", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 35 | TypingAlias | ref | function | "typing.FrozenSet": TypingAlias("frozenset", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 36 | TypingAlias | ref | function | "typing.Type": TypingAlias("type", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 37 | TypingAlias | ref | function | "typing.Deque": TypingAlias("collections.deque", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 38 | TypingAlias | ref | function | "typing.DefaultDict": TypingAlias("collections.defaultdict", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 39 | TypingAlias | ref | function | "typing.OrderedDict": TypingAlias("collections.OrderedDict", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 40 | TypingAlias | ref | function | "typing.Counter": TypingAlias("collections.Counter", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 41 | TypingAlias | ref | function | "typing.ChainMap": TypingAlias("collections.ChainMap", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 42 | TypingAlias | ref | function | "typing.Awaitable": TypingAlias("collections.abc.Awaitable", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 43 | TypingAlias | ref | function | "typing.Coroutine": TypingAlias("collections.abc.Coroutine", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 44 | TypingAlias | ref | function | "typing.AsyncIterable": TypingAlias("collections.abc.AsyncIterable", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 45 | TypingAlias | ref | function | "typing.AsyncIterator": TypingAlias("collections.abc.AsyncIterator", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 46 | TypingAlias | ref | function | "typing.AsyncGenerator": TypingAlias("collections.abc.AsyncGenerator", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 47 | TypingAlias | ref | function | "typing.Iterable": TypingAlias("collections.abc.Iterable", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 48 | TypingAlias | ref | function | "typing.Iterator": TypingAlias("collections.abc.Iterator", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 49 | TypingAlias | ref | function | "typing.Generator": TypingAlias("collections.abc.Generator", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 50 | TypingAlias | ref | function | "typing.Reversible": TypingAlias("collections.abc.Reversible", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 51 | TypingAlias | ref | function | "typing.Container": TypingAlias("collections.abc.Container", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 52 | TypingAlias | ref | function | "typing.Collection": TypingAlias("collections.abc.Collection", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 53 | TypingAlias | ref | function | "typing.Callable": TypingAlias("collections.abc.Callable", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 54 | TypingAlias | ref | function | "typing.AbstractSet": TypingAlias("collections.abc.Set", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 55 | TypingAlias | ref | function | "typing.MutableSet": TypingAlias("collections.abc.MutableSet", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 56 | TypingAlias | ref | function | "typing.Mapping": TypingAlias("collections.abc.Mapping", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 57 | TypingAlias | ref | function | "typing.MutableMapping": TypingAlias("collections.abc.MutableMapping", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 58 | TypingAlias | ref | function | "typing.Sequence": TypingAlias("collections.abc.Sequence", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 59 | TypingAlias | ref | function | "typing.MutableSequence": TypingAlias("collections.abc.MutableSequence", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 60 | TypingAlias | ref | function | "typing.ByteString": TypingAlias("collections.abc.ByteString", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 61 | TypingAlias | ref | function | "typing.MappingView": TypingAlias("collections.abc.MappingView", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 62 | TypingAlias | ref | function | "typing.KeysView": TypingAlias("collections.abc.KeysView", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 63 | TypingAlias | ref | function | "typing.ItemsView": TypingAlias("collections.abc.ItemsView", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 64 | TypingAlias | ref | function | "typing.ValuesView": TypingAlias("collections.abc.ValuesView", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 65 | TypingAlias | ref | function | "typing.ContextManager": TypingAlias("contextlib.AbstractContextManager", False),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 66 | TypingAlias | ref | function | "typing.AsyncContextManager": TypingAlias(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 69 | TypingAlias | ref | function | "typing.Pattern": TypingAlias("re.Pattern", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 70 | TypingAlias | ref | function | "typing.Match": TypingAlias("re.Match", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 71 | TypingAlias | ref | function | "typing.Hashable": TypingAlias("collections.abc.Hashable", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 72 | TypingAlias | ref | function | "typing.Sized": TypingAlias("collections.abc.Sized", True),
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 85 | DeprecatedTypingAliasMsg | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 92 | TypingChecker | def | class | __init__ open _msg_postponed_eval_hint visit_name visit_attribute _check_for_alternative_union_syntax _check_for_typing_alias leave_module _check_broken_noreturn _check_broken_callable _broken_callable_location |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 186 | _msg_postponed_eval_hint | def | function | def _msg_postponed_eval_hint(self, node: nodes.NodeNG) -> str:
"""Message hint if postponed evaluation isn't enabled."""
if self._py310_plus or "annotations" in node.root().future_imports:
return ""
return ". Add 'from __future__ import annotations' as well"
@only_required_f... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 188 | root | ref | function | if self._py310_plus or "annotations" in node.root().future_imports:
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/extensions/typing.py | pylint/extensions/typing.py | 192 | only_required_for_messages | ref | function | @only_required_for_messages(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.