News for hackers. Stuff that matters.
Re:Python 3.11.0 final is now available by henbruas on Tuesday October 25, 2022 @01:15PM (#33333412)
> Yes, there are type stubs for these libraries but they’re either forced to be more strict, preventing use of dynamism, or opt for being less strict but allowing you to use all the library features, at the cost of safety.

There are type stubs for Django that somewhat avoid these compromises: https://github.com/typeddjango/django-stubs

To be able to do this they have to use a Mypy plugin though. And even then it's still far from perfect.

Re:Python 3.11.0 final is now available by matsemann on Wednesday October 26, 2022 @02:14AM (#33340374)
And Pycharm and django-stubs can't work together for some reason.