closeio / tasktiger

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

Tweak the docstring for the `RetryException` + better type for `original_traceback` #343

Closed wojcikstefan closed 2 months ago

wojcikstefan commented 2 months ago

This way the docstring is more easily parseable & readable.

original_traceback needs to be a boolean, so the previous Any type annotation was unnecessarily permissive.

Note that method could use a better type annotation (equivalent to retry_method on delay), but that can happen in a follow-up PR since I think a NewType or a dedicated dataclass would be preferable there.