$npx skillfedfor your agent

celery-types

Type stubs for Celery and its related packages

With conditionsPyPI Software DevelopmentReleased Mar 20263.5M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — celery_types-0.26.0-py3-none-any.whl
v0.26.0 · released 2026-03-12 · Python <4,>=3.10 · 1 runtime deps: typing-extensions

Yes, if you use Celery or its related packages and want static type checking. The package is actively maintained, has no vulnerabilities, installs with minimal friction, and is permissively licensed. The required monkey-patch is a one-time setup documented in the README. Install it as a dev dependency to catch type errors early.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Monkey patching of Celery classes is necessary to use generic type parameters with these stubs.
  • Installs with minimal friction—a pure Python wheel with only typing-extensions as a runtime dependency.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restriction.

last release 2026-03-12 (155 days) · last repo commit 2026-07-29 · 156 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,537,228 downloads/mo, #2,587 on PyPI

Verify before relying

pip install celery-types

from celery import Celery
from celery.app.task import Task

# Monkey patch to enable generic parameters (see docs for full class list)
setattr(Celery, "__class_getitem__", classmethod(lambda cls, *args, **kwargs: cls))
setattr(Task, "__class_getitem__", classmethod(lambda cls, *args, **kwargs: cls))
  • Whether the monkey-patch workaround is required for all use cases or only when using generic type parameters.
  • Coverage completeness: which Celery and related package APIs are fully typed versus partially stubbed.
Same gist for agents: .md · .json

What it is and what it does

celery-types is a type-stub package that adds static type information to Celery and its ecosystem of related libraries. It enables type checkers like mypy and basedpyright to understand the APIs of Celery, kombu, amqp, billiard, vine, django-celery-results, and ephem, catching type errors at development time rather than runtime.

The package is pure stubs—it contains no runtime code and depends only on typing-extensions. Installation is straightforward, but the stubs require a monkey-patch workaround to support generic type parameters on key Celery classes like Task, AsyncResult, and Signature. This is a one-time setup step documented in the package's README.

Use it for

  • Add type checking to a Celery application to catch task signature and result-handling errors before deployment.
  • Enable IDE autocomplete and type hints for Celery task definitions and async result operations.
  • Validate kombu message broker interactions and amqp protocol usage in type-safe code.
  • Support mypy or basedpyright in a Django project using django-celery-results for task result storage.
  • Integrate Celery into a strictly typed codebase without disabling type checking for Celery imports.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you use Celery or its related packages and want static type checking.

The package is actively maintained, has no vulnerabilities, installs with minimal friction, and is permissively licensed. The required monkey-patch is a one-time setup documented in the README. Install it as a dev dependency to catch type errors early.

Install

celery-types on PyPI

Before you install

Installs with minimal friction—a pure Python wheel with only typing-extensions as a runtime dependency. Actively maintained with a recent release and no known vulnerabilities.

Requires Python 3.10 or later. Monkey patching of Celery classes is necessary to use generic type parameters with these stubs.

License in practice

Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restriction.

Quickstart

pip install celery-types

from celery import Celery
from celery.app.task import Task

# Monkey patch to enable generic parameters (see docs for full class list)
setattr(Celery, "__class_getitem__", classmethod(lambda cls, *args, **kwargs: cls))
setattr(Task, "__class_getitem__", classmethod(lambda cls, *args, **kwargs: cls))

Verify before relying

  • Whether the monkey-patch workaround is required for all use cases or only when using generic type parameters.
  • Coverage completeness: which Celery and related package APIs are fully typed versus partially stubbed.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release <4,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
typing-extensions
MaintenanceActively maintained 155 days since the last release
Last repo commit
First released
Downloads3,537,228 / month, #2,587 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Stubs OnlyTyping :: Typed

Evidence: celery_types-0.26.0-py3-none-any.whl

Tags

Capabilities
celery type stubscelery mypy typescelery type hintscelery static type checkingkombu type stubsamqp type annotationscelery typing support
Topics
type-stubscelerystatic-typing
PyPI keywords
celerykombuvineamqpbilliarddjango_celery_resultstypesmypystubs

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “celery type stubs”

  • celery-typesProvides type stubs for Celery and related packages (kombu, amqp,…
  • celery-stubsProvides type stubs for Celery to enable static type checking with…
  • pylint-celeryA Pylint plugin that improves static analysis of Celery code by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also msgpack-types · celery-stubs · djangorestframework-types · django-types · django-stubs-ext · django-celery-results · types-smorest · google-api-python-client-stubs · types-sqlalchemy-utils · types-pysaml2