Hacker News new | ask | show | jobs
by mixmastamyk 252 days ago
Why would they need to support pydantic when it uses standard annotations? I tried it with ty yesterday and it flagged issues as expected.
1 comments

Pydantic does some pretty strange stuff which works as expected but confuses the type checker unless you use the pydantic plugin. https://docs.pydantic.dev/latest/integrations/mypy/
I see. Tried ty and it seemed to know about missing required args. But wasn't able to follow the Field directives.