Method: pylint.extensions.typing.TypingChecker.visit_name
Calls: 752, Exceptions: 0, Paths: 6Back
Path 1: 564 calls (0.75)
Name (564)
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_name(self, node: nodes.Name) -> None:
9 if self._should_check_typing_alias and node.name in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.name in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.name)
13 if self._should_check_noreturn and node.name == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.name == "Callable":
16 self._check_broken_callable(node)
Path 2: 80 calls (0.11)
Name (80)
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_name(self, node: nodes.Name) -> None:
9 if self._should_check_typing_alias and node.name in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.name in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.name)
13 if self._should_check_noreturn and node.name == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.name == "Callable":
16 self._check_broken_callable(node)
Path 3: 64 calls (0.09)
Name (64)
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_name(self, node: nodes.Name) -> None:
9 if self._should_check_typing_alias and node.name in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.name in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.name)
13 if self._should_check_noreturn and node.name == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.name == "Callable":
16 self._check_broken_callable(node)
Path 4: 25 calls (0.03)
Name (25)
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_name(self, node: nodes.Name) -> None:
9 if self._should_check_typing_alias and node.name in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.name in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.name)
13 if self._should_check_noreturn and node.name == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.name == "Callable":
16 self._check_broken_callable(node)
Path 5: 10 calls (0.01)
Name (10)
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_name(self, node: nodes.Name) -> None:
9 if self._should_check_typing_alias and node.name in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.name in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.name)
13 if self._should_check_noreturn and node.name == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.name == "Callable":
16 self._check_broken_callable(node)
Path 6: 9 calls (0.01)
Name (9)
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_name(self, node: nodes.Name) -> None:
9 if self._should_check_typing_alias and node.name in ALIAS_NAMES:
10 self._check_for_typing_alias(node)
11 if self._should_check_alternative_union_syntax and node.name in UNION_NAMES:
12 self._check_for_alternative_union_syntax(node, node.name)
13 if self._should_check_noreturn and node.name == "NoReturn":
14 self._check_broken_noreturn(node)
15 if self._should_check_callable and node.name == "Callable":
16 self._check_broken_callable(node)