Type stubs for celery related projects:
pip install celery-typesYou'll also need to monkey patch Task so generic params can be provided:
from celery.app.task import Task
Task.__class_getitem__ = classmethod(lambda cls, *args, **kwargs: cls) # type: ignore[attr-defined]poetry install
# run formatting, linting, and typechecking
s/lint
# build and publish
poetry publish --build- https://github.com/sbdchd/django-types
- https://github.com/sbdchd/djangorestframework-types
- https://github.com/sbdchd/mongo-types
- https://github.com/sbdchd/msgpack-types