collerek / ormar

python async orm with fastapi in mind and pydantic validation
https://collerek.github.io/ormar/
MIT License
1.65k stars 85 forks source link

Create mypy plugin to handle common pitfalls #213

Open collerek opened 3 years ago

collerek commented 3 years ago

Since a lot of things in ormar are generated dynamically mypy does not play well with some of them.

That's the idea behind custom plugin enhancing how mypy handles ormar, similar to the one used by pydantic.

pmdevita commented 6 months ago

I have experience writing mypy plugins and could do this, could you make a list of things the plugin would need to check for?

collerek commented 6 months ago

@pmdevita Great to hear that! :)

The most crucial things are: