python-language-server icon indicating copy to clipboard operation
python-language-server copied to clipboard

Don't insert parentheses for imports, type hints and class inheritance

Open WhiteExponent opened this issue 5 years ago • 2 comments

When pyls is completing identifiers in imports, type hints and parent classes, it inserts parentheses and default function arguments, which is obviously wrong. It would be better to just insert the identifier instead. (Is this related more to jedi than python-language-server? If so, let me know so I can open the issue there.)

Editor: Emacs 26.3 + Doom Emacs + lsp-mode python-language-server version: 0.31.10

WhiteExponent avatar Apr 27 '20 16:04 WhiteExponent

@andfoy could you check?

goanpeca avatar Apr 27 '20 16:04 goanpeca

@WhiteExponent, could you provide an example of the actual and expected behaviors?

ccordoba12 avatar May 25 '20 17:05 ccordoba12