Hacker News new | ask | show | jobs
by goodoldneon 1 day ago
I'm not sure about Django + Ty specifically, but some dependencies need a plugin because they're impossible to type annotate otherwise. For example, sqlalchemy + mypy
1 comments

Exactly. Why are we baking support for this or that package to the core instead of enabling plugins or just making the type system more expressive?
Another commenter explained pretty well why Django is "special" here: https://news.ycombinator.com/item?id=50720035
It takes a great effort and time to push things like PEP747 forward and when you manage, perhaps you need to wait several years until the lowest supported version of python implements the changes you wanted.