SublimeCodeIntel / CodeIntel

Full-featured code intelligence and smart autocomplete engine
http://www.sublimecodeintel.com
Other
42 stars 8 forks source link

Python 3 : bare * in function arguments causes syntax error. #8

Open aminland opened 6 years ago

aminland commented 6 years ago

The new python3 construct to ensure force people to use keyword arguments without having to specify defaults is to put a bare asterisk.

Right now, if any of the files in our import chain use that syntax, it seems to break codeintel altogether.

See this stack overflow link for the exact syntax: https://stackoverflow.com/questions/2965271/forced-naming-of-parameters-in-python/14298976#14298976

I think it would be safe to just search for and drop the bare * in function definitions for codeintel's purposes.