You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But unfortunately mypy it's throwing the following error:
error: Argument "autoretry_for" to "shared_task" has incompatible type "Tuple[Type[PoolTimeout], Type[CancelledError]]"; expected "Tuple[Type[Exception], ...]" [arg-type]
The reason for this is that CancelledError extends from BaseException instead of Exception. This is the issue where they changed the base class.
The text was updated successfully, but these errors were encountered:
sk-
added a commit
to sk-/celery-types
that referenced
this issue
Mar 19, 2023
There are some exceptions like `CancelledError` that extend from `BaseException` instead of `Exception`, and that makes it impossible to correctly pass them as arguments to `autoretry_for`.
This fixessbdchd#107.
I'm not sure if we should to a similar change to the `throws` argument.
There are some exceptions like `CancelledError` that extend from `BaseException` instead of `Exception`, and that makes it impossible to correctly pass them as arguments to `autoretry_for`.
This fixes#107.
I'm not sure if we should to a similar change to the `throws` argument.
We have the following code
But unfortunately mypy it's throwing the following error:
The reason for this is that
CancelledError
extends fromBaseException
instead ofException
. This is the issue where they changed the base class.The text was updated successfully, but these errors were encountered: