Task.push_request is currently typed as
|
def push_request(self, *args: _P.args, **kwargs: _P.kwargs) -> None: ... |
However, the method is meant accept any arguments, as those are passed to the Context class. See the definition
https://github.com/celery/celery/blob/fe573ea3bb9ebe36807a328762eff9566a287bd5/celery/app/task.py#L1154-L1155
One valid use case for push_request that is currently flagged by the types is
_test_task.push_request(delivery_info={"routing_key": "test_queue"})
Task.push_requestis currently typed ascelery-types/celery-stubs/app/task.pyi
Line 358 in 8dd6242
However, the method is meant accept any arguments, as those are passed to the
Contextclass. See the definitionhttps://github.com/celery/celery/blob/fe573ea3bb9ebe36807a328762eff9566a287bd5/celery/app/task.py#L1154-L1155
One valid use case for push_request that is currently flagged by the types is