python-language-server
python-language-server copied to clipboard
Class Parameter Hints do not show up when inheriting from NamedTuple
Class parameter hints should show above docstring on intellisense when using typing.NamedTuple
Environment data
- VS Code version: 1.45.0
- Extension version 2020.4.76186
- OS and version: Ubuntu 18.04.4 LTS
- Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
- Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info microsoft/vscode-python#3977): Jedi Enabled - Value of the
python.languageServer
setting: Microsof
Example
from typing import NamedTuple
class Config_Shape(NamedTuple):
x: int
y: int
Intellisense now shows the parameters for NamedTuple rather than Config_Shape. I.e.
typename: str, fields: Iter..
👍 this is a big nuisance
btw, it seems like pylance fixes this
Yep (along with many other things 🙂).
https://devblogs.microsoft.com/python/announcing-pylance-fast-feature-rich-language-support-for-python-in-visual-studio-code/
I'm also having this issue.
I don't think it's just a lack of a feature though? Because it was initially brought up in #15, then I believe added in #339? Or am I misunderstanding that?