I'm writing a code for type hinting annotation with pycharm such like
def run() -> list:
In my env, this is warned for a syntax error with a comment
"illegal target for variable annotation"
However, it is able to run and the syntax seems correct.
How to suppress this warning?
My pycharm is 2017.1.
My python env is the anaconda env with python 3.6 on windows 10,