From 24d8780625fc83641528b047ef8f2dfa1ec1becb Mon Sep 17 00:00:00 2001 From: Brian Helba Date: Mon, 12 Jan 2026 22:38:27 -0500 Subject: [PATCH] Remove monkeypatch installation instructions https://github.com/celery/celery/pull/10038/ makes this unnecessary. Fixes #208. --- README.md | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/README.md b/README.md index 96a7a2e..e119456 100644 --- a/README.md +++ b/README.md @@ -23,37 +23,6 @@ Type stubs for celery related projects: 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: - -```python -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