-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Description
Here's what ty has to say about the type of pydantic.Field:
For reference, here's Pyright's:
There are two problems here:
-
There is no syntax highlighting.
The code block's language is
text, but it should bepython. I understand ty's type information is not always valid Python, but for all intents and purposes it might as well be considered as such. I'd also like to add that ty should put more trust in syntax highlighters, which are often written with invalid code in mind. -
The formatting is unreadable.
I feel like it should be possible to run Ruff's formatter on ty's output, especially syntactically valid ones like
Literal["some", "very", "long", "names"].
TomerBin, flexagoon, NicolasFerec, net, tonnico and 2 more
Metadata
Metadata
Assignees
Labels
serverRelated to the LSP serverRelated to the LSP server

