by Xavdidtheshadow · 5y ago · 0 comments
Anecdata, but when I was digging into how Dataclasses worked, Pylance had great completion, but only if I imported from the dataclass module itself. If I pasted the whole implementation into a local file and used that, I didn't get the hints.
This makes me think that Pylance _does_ have some secret sauce.
https://github.com/microsoft/pyright/blob/main/specs/datacla...