I’m having this issue, too!
I have the following code, sublime v3114, sublimelinter, and flake8:
def get_paypal_details(self, token) -> dict:
Flake8 highlights this as a syntax error (no error code is visible), and there’s no syntax highlighting.
I’m in an activated python3 virtualenv, with the following:
"settings":
{
"python_interpreter": ".direnv/python-3.5.1/bin/python3"
}
I also have djaneiro installed, and have tried setting the file’s syntax to ‘python’ / ‘python django’ to no avail.
I have Anaconda disabled atm,. because it has not solved this ‘invalid syntax’ issue for me. I’ve tried various combinations of settings, paths, etc inspired by the following: http://stackoverflow.com/questions/35537207/anacondasublimetext-reports-type-hinting-as-errors
Hope someone can help… I’m no pythonista!
TIA, ptim