Skip to content

Commit

Permalink
Remove redundant branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lggruspe committed Sep 7, 2022
1 parent c857038 commit c95baf3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2924,16 +2924,11 @@ def visit_const(self, node: nodes.Const) -> None:
parent = node.parent
if isinstance(parent, nodes.Tuple):
parent = parent.parent

if isinstance(parent, nodes.Subscript):
origin = next(parent.get_children(), None)
if origin is not None and utils.is_typing_literal(origin):
return

if node.value.isidentifier():
self._type_annotation_names.append(node.value)
return

try:
annotation = extract_node(node.value)
self._store_type_annotation_node(annotation)
Expand Down

0 comments on commit c95baf3

Please sign in to comment.