Method: pylint.extensions.typing.TypingChecker.visit_attribute
Calls: 91, Exceptions: 0, Paths: 5Back
Path 1: 40 calls (0.44)
Attribute (40)
1@only_required_for_messages(
2 "deprecated-typing-alias",
3 "consider-using-alias",
4 "consider-alternative-union-syntax",
5 "broken-noreturn",
6 "broken-collections-callable",
7 )
8 def visit_attribute(self, node: nodes.Attribute) -> None:
9 if self._should_check_typing_alias and node.attrname in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.attrname in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.attrname)
13 if self._should_check_noreturn and node.attrname == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.attrname == "Callable":
16 self._check_broken_callable(node)
Path 2: 36 calls (0.4)
Attribute (36)
1@only_required_for_messages(
2 "deprecated-typing-alias",
3 "consider-using-alias",
4 "consider-alternative-union-syntax",
5 "broken-noreturn",
6 "broken-collections-callable",
7 )
8 def visit_attribute(self, node: nodes.Attribute) -> None:
9 if self._should_check_typing_alias and node.attrname in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.attrname in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.attrname)
13 if self._should_check_noreturn and node.attrname == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.attrname == "Callable":
16 self._check_broken_callable(node)
Path 3: 6 calls (0.07)
Attribute (6)
1@only_required_for_messages(
2 "deprecated-typing-alias",
3 "consider-using-alias",
4 "consider-alternative-union-syntax",
5 "broken-noreturn",
6 "broken-collections-callable",
7 )
8 def visit_attribute(self, node: nodes.Attribute) -> None:
9 if self._should_check_typing_alias and node.attrname in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.attrname in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.attrname)
13 if self._should_check_noreturn and node.attrname == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.attrname == "Callable":
16 self._check_broken_callable(node)
Path 4: 5 calls (0.05)
Attribute (5)
1@only_required_for_messages(
2 "deprecated-typing-alias",
3 "consider-using-alias",
4 "consider-alternative-union-syntax",
5 "broken-noreturn",
6 "broken-collections-callable",
7 )
8 def visit_attribute(self, node: nodes.Attribute) -> None:
9 if self._should_check_typing_alias and node.attrname in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.attrname in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.attrname)
13 if self._should_check_noreturn and node.attrname == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.attrname == "Callable":
16 self._check_broken_callable(node)
Path 5: 4 calls (0.04)
Attribute (4)
1@only_required_for_messages(
2 "deprecated-typing-alias",
3 "consider-using-alias",
4 "consider-alternative-union-syntax",
5 "broken-noreturn",
6 "broken-collections-callable",
7 )
8 def visit_attribute(self, node: nodes.Attribute) -> None:
9 if self._should_check_typing_alias and node.attrname in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.attrname in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.attrname)
13 if self._should_check_noreturn and node.attrname == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.attrname == "Callable":
16 self._check_broken_callable(node)