News for hackers. Stuff that matters.
Re:Python 3.11.0 final is now available by henbruas on Tuesday October 25, 2022 @11:03AM (#33331492)
While it's of course not ideal, stub files can help with this issue. For example you can get stubs for Celery that make both `shared_task` and `delay` properly typed: https://github.com/sbdchd/celery-types
Re:Python 3.11.0 final is now available by matsemann on Wednesday October 26, 2022 @02:18AM (#33340397)
Only since 3.10, though, before that it was actually impossible to type the decorators correctly.
Re:Python 3.11.0 final is now available by dragonwriter on Wednesday October 26, 2022 @12:10PM (#33345810)
> Only since 3.10, though, before that it was actually impossible to type the decorators correctly.

There were type gymnastics you could do using overloads to reach any arbitrary level of coverage, but it was ugly and always short of fully general.