Skip to content

Commit

Permalink
Fixed flake8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
netromdk committed Mar 9, 2020
1 parent 0f84c77 commit 07fd10f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vermin/source_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,9 +1254,9 @@ def __handle_FunctionDef(self, node):
attr_name = dotted_name(self.__get_attribute_name(ann))

if (isinstance(ann, ast.Name) and ann.id == "Literal") or \
(isinstance(ann, ast.Subscript) and hasattr(ann.value, "id") \
and ann.value.id == "Literal") or \
attr_name == "Literal" or attr_name == "typing.Literal":
(isinstance(ann, ast.Subscript) and hasattr(ann.value, "id") and
ann.value.id == "Literal") or \
attr_name == "Literal" or attr_name == "typing.Literal":
self.__literal_annotations = True
self.__vvprint("literal variable annotations require 3.8+")
break
Expand Down

0 comments on commit 07fd10f

Please sign in to comment.