sk- / celery-types

:seedling: Type stubs for Celery and its related packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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) # type: ignore[attr-defined]

dev

poetry install

# run formatting, linting, and typechecking
s/lint

# build and publish
poetry publish --build

related

About

:seedling: Type stubs for Celery and its related packages

License:Apache License 2.0


Languages

Language:Python 99.5%Language:Shell 0.5%