Skip to content

Commit

Permalink
Add Feed to monkeypatch to fix generic issue. (#1002)
Browse files Browse the repository at this point in the history
Fixes #1001
  • Loading branch information
adambirds authored Jun 17, 2022
1 parent 6330305 commit 86c007d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django_stubs_ext/django_stubs_ext/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)),
Expand Down

0 comments on commit 86c007d

Please sign in to comment.