closeio / tasktiger

Python task queue using Redis
MIT License
1.41k stars 80 forks source link

Make `func.delay` typed when decorating `func` with `@tiger.task` #302

Open neob91-close opened 10 months ago

neob91-close commented 10 months ago

We're currently assigning delay as the attribute of func here, which means func.delay evaluates to Any.

We should instead wrap func into a new object with proper type annotations for delay, __call__ (etc.)