Type stubs for Celery and its related packages
Project Links
Meta
Author: Steve Dignam
Requires Python: >=3.10, <4
Classifiers
License
- OSI Approved :: Apache Software License
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
Typing
- Stubs Only
- Typed
celery-types
Type stubs for celery related projects:
install
pip install celery-types
You'll also need to monkey patch the classes from the example below (you can delete anything you don't intend to use) so generic params can be provided:
from celery import Celery, Signature
from celery.app.task import Task
from celery.contrib.abortable import AbortableAsyncResult, AbortableTask
from celery.contrib.django.task import DjangoTask
from celery.local import class_property
from celery.result import AsyncResult
from celery.utils.objects import FallbackContext
classes = [
Celery,
Task,
DjangoTask,
AbortableTask,
AsyncResult,
AbortableAsyncResult,
Signature,
FallbackContext,
class_property,
]
for cls in classes:
setattr( # noqa: B010
cls,
"__class_getitem__",
classmethod(lambda cls, *args, **kwargs: cls),
)
dev
initial setup
# install uv (https://docs.astral.sh/uv/)
curl -LsSf https://astral.sh/uv/install.sh | sh
regular development
uv sync
# run formatting, linting, and typechecking
s/lint
or
uv run ruff check --fix
uv run ruff format
uv run basedpyright typings tests
uv run mypy tests
# build and publish
uv build && uv publish
pre-commit
The project uses pre-commit for code quality checks:
# install pre-commit hooks
uv run prek install
# run all checks manually
uv run prek run --all-files
tooling
- ruff โ formatting and linting
- basedpyright โ type checking
- mypy โ type checking
related
0.26.0
Mar 12, 2026
0.25.0
Mar 11, 2026
0.24.0
Dec 23, 2025
0.23.0
Mar 03, 2025
0.22.0
Jan 25, 2024
0.21.0
Jan 15, 2024
0.20.0
Sep 19, 2023
0.19.0
Aug 06, 2023
0.18.0
Jun 17, 2023
0.17.0
Jun 01, 2023
0.16.0
May 30, 2023
0.15.0
Mar 30, 2023
0.14.0
Aug 26, 2022
0.13.2
Aug 20, 2022
0.13.1
Jun 11, 2022
0.13.0
May 29, 2022
0.12.0
Mar 09, 2022
0.11.0
Jan 25, 2022
0.10.0
Dec 31, 2021
0.9.3
Nov 28, 2021
0.9.2
Nov 06, 2021
0.9.1
Nov 03, 2021
0.9.0
Oct 31, 2021
0.8.3
Oct 29, 2021
0.8.2
Oct 19, 2021
0.8.1
Sep 21, 2021
0.8.0
Jul 08, 2021
0.7.0
Jul 07, 2021
0.6.0
Jul 06, 2021
0.5.0
Jul 02, 2021
0.4.0
Jun 21, 2021
0.3.1
Jun 18, 2021
0.3.0
Feb 22, 2021
0.2.0
Feb 19, 2021
0.1.0
Feb 08, 2021
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
typing-extensions
(<5,>=4.15.0)