Function annotation not supported
Bug #1318497 reported by
Cody
This bug report is a duplicate of:
Bug #1169552: FileNotFoundError and other new Python 3.3 exceptions are not supported.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
New
|
Undecided
|
Unassigned |
Bug Description
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 foo.py -vv
checking foo.py
def add(x: int, y: int) -> int:
return x + y
7.3.py:1:11: E901 SyntaxError: invalid syntax
To post a comment you must log in.
Marked as duplicate.
There's useful information on the README too.
tl;dr; install pyflakes/flake8 on Python 3
:-)