Closed Kakadus closed 1 year ago
Maybe I'm wrong, but I think Context.parent_id should be of type str | None instead of https://github.com/sbdchd/celery-types/blob/6d55b8cbf64d0fa8a6e8efe782aac3d7d39a384d/celery-stubs/app/task.pyi#L49
Context.parent_id
str | None
All other id-like fields are str | None and after a quick search, I found several places in celery, where str-variables are given as a named parameter called parent_id, like in celery.app.trace.build_tracer in the subfunction trace_task line 520.
str
parent_id
celery.app.trace.build_tracer
trace_task
I will create a PR soon.
Maybe I'm wrong, but I think
Context.parent_id
should be of typestr | None
instead of https://github.com/sbdchd/celery-types/blob/6d55b8cbf64d0fa8a6e8efe782aac3d7d39a384d/celery-stubs/app/task.pyi#L49All other id-like fields are
str | None
and after a quick search, I found several places in celery, wherestr
-variables are given as a named parameter calledparent_id
, like incelery.app.trace.build_tracer
in the subfunctiontrace_task
line 520.I will create a PR soon.