/celery-types

(FORK) Type stubs for Celery and its related packages

Primary LanguagePythonApache License 2.0Apache-2.0

celery-types PyPI

Type stubs for celery related projects:

install

pip install celery-types

You'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)

dev

poetry install

# run formatting, linting, and typechecking
s/lint

# build and publish
poetry publish --build

related