requests-html icon indicating copy to clipboard operation
requests-html copied to clipboard

[flake8] E999 SyntaxError: invalid syntax

Open northtree opened this issue 8 years ago • 3 comments

I am learning the source code, but have this flake8 ERROR.

requests_html.py:63:25: E999 SyntaxError: invalid syntax

Could I know the syntax of this argument? And how to ignore if it's not error.

northtree avatar Mar 06 '18 06:03 northtree

That's the first line in the file that includes the new PEP 484 Type Hints syntax. Presumably your flake8 version doesn't yet support it.

andrewsg avatar Mar 06 '18 07:03 andrewsg

@andrewsg My flake8 version is 3.5.0 which is same via pypi.

northtree avatar Mar 06 '18 10:03 northtree

Please use Python 3.6

Prodesire avatar Mar 06 '18 12:03 Prodesire