Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

No completions on namedtuple #15

Closed
MikhailArkhipov opened this issue Aug 31, 2018 · 1 comment
Closed

No completions on namedtuple #15

MikhailArkhipov opened this issue Aug 31, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@MikhailArkhipov
Copy link

MikhailArkhipov commented Aug 31, 2018

microsoft/PTVS#731
microsoft/vscode-python#2377

from collections import namedtuple
RequestStartLine = namedtuple("RequestStartLine", "method path version".split())
start_line = RequestStartLine("GET", "/query", "HTTP/1.1")
print(start_line)
start_line.  # <- no suggestion

This needs new specializations

@MikhailArkhipov
Copy link
Author

Requires #304 since otherwise Type definition is not seen as _GenericAlias and is rather None

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants