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.
This way the docstring is more easily parseable & readable.
original_traceback
needs to be a boolean, so the previousAny
type annotation was unnecessarily permissive.Note that
method
could use a better type annotation (equivalent toretry_method
ondelay
), but that can happen in a follow-up PR since I think aNewType
or a dedicated dataclass would be preferable there.