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
The following example raises a spurious mypy error:
fromceleryimportCelery, Taskapp=Celery()
@app.task(bind=True)defmaybe_replace(task: Task, replace: bool) ->int:
ifreplace:
returntask.replace(maybe_replace.s(replace=False)) # error: "replace" of "Task" does not return a value (it only ever returns None)else:
return10
The text was updated successfully, but these errors were encountered:
The following example raises a spurious mypy error:
The text was updated successfully, but these errors were encountered: