Better completions for Literals nested inside other types #3090
multimeric
started this conversation in
Enhancement
Replies: 1 comment 1 reply
-
On further investigation, we do get correct completions, but only after opening the string: I think it would be preferable for these completions to be shown before this: as soon as the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently

pylance
correctly makes suggestions for a literal-typed variable:However, once we nest that literal into a

TypedDict
, it no longer suggests these:However if we use the function call syntax, it works again:

Pylance: 2022.7.40
VSCode: 1.69.1
Beta Was this translation helpful? Give feedback.
All reactions