From 86c007d83f1fe895944bc3e6a33872408d611c00 Mon Sep 17 00:00:00 2001 From: Adam Birds Date: Fri, 17 Jun 2022 14:39:11 +0100 Subject: [PATCH] Add Feed to monkeypatch to fix generic issue. (#1002) Fixes #1001 --- django_stubs_ext/django_stubs_ext/patch.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django_stubs_ext/django_stubs_ext/patch.py b/django_stubs_ext/django_stubs_ext/patch.py index 17d50cc32..1c299f9f9 100644 --- a/django_stubs_ext/django_stubs_ext/patch.py +++ b/django_stubs_ext/django_stubs_ext/patch.py @@ -3,6 +3,7 @@ from django import VERSION as VERSION from django.contrib.admin import ModelAdmin from django.contrib.admin.options import BaseModelAdmin +from django.contrib.syndication.views import Feed from django.core.paginator import Paginator from django.db.models.fields import Field from django.db.models.manager import BaseManager @@ -52,6 +53,7 @@ def __repr__(self) -> str: MPGeneric(BaseFormSet), MPGeneric(BaseModelForm), MPGeneric(BaseModelFormSet), + MPGeneric(Feed), # These types do have native `__class_getitem__` method since django 3.1: MPGeneric(QuerySet, (3, 1)), MPGeneric(BaseManager, (3, 1)),