In this code snippet,
def add(x:int, y:int) -> int:
return x + y
there are function annotations that are only supported after python 3.0
When I execute flake8 for this python code:
$ flake8 7.3.py -vv
checking 7.3.py
def add(x: int, y: int) -> int:
return x + y
7.3.py:1:11: E901 SyntaxError: invalid syntax
I got the invalid syntax error, but it should be valid syntax. How can I use flake8 to check the syntax that is only supported in Python 3.x?