Elektrine lite

← Feed

@adamghill@indieweb.social

Post #664028

2026-03-12 00:28 UTC

After fighting for... days?... to figure out why using `@dataclass_transform` wasn't showing the expected intellisense in VSCode, I finally figured out that the Jedi language server doesn't seem to support PEP 681 at all?! I didn't have access to Pylance (because it's proprietary), but https://open-vsx.org/extension/detachhead/basedpyright does seem to work. (doing a bananas prototype where #Django models can be derived just from #Python typehints)

Replies (2)

  • @adamghill@indieweb.social 2026-03-12 01:12

    Maybe it’s a quirk with Antigravity (VS Code derivative) and Jedi? Or maybe it’s how I’m trying to use dataclass_transform? I’m still confused what is going on, but the pyright and ty extensions seem to show hovers how I would expect.

    Open ##1231538

  • @glyph@mastodon.social 2026-03-12 00:31

    @adamghill wait what? jedi (no language server) on emacs deals fine with dataclass transforms I thought. I will have to re-verify my experience now

    Open ##1231541