getludic / ludic

🌳 Web Development in Pure Python with Type-Guided Components.
https://getludic.dev
MIT License
750 stars 14 forks source link

Analyze possibilities to fix attributes typing by implementing mypy plugin #62

Closed paveldedik closed 5 months ago

paveldedik commented 5 months ago

Motivation

The biggest issue in Ludic right now is https://github.com/paveldedik/ludic/issues/3. That means, attributes are not type checked, e.g. html(href="/") will pass mypy. It would be nice to check if there is any possibility to fix this temporarily with a mypy plugin - at least until there is a PEP for this and it is implemented by type checkers.