From adaa16f3050ab3329fcf2098345ab1f37b8f7a31 Mon Sep 17 00:00:00 2001 From: Petter Friberg Date: Fri, 2 Aug 2024 08:51:13 +0200 Subject: [PATCH] Loosen bound on `CurrentSiteManager` manager type var --- django-stubs/contrib/sites/managers.pyi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django-stubs/contrib/sites/managers.pyi b/django-stubs/contrib/sites/managers.pyi index f629ef4a2..bdf0e8492 100644 --- a/django-stubs/contrib/sites/managers.pyi +++ b/django-stubs/contrib/sites/managers.pyi @@ -1,9 +1,8 @@ from typing import TypeVar -from django.contrib.sites.models import Site from django.db import models -_T = TypeVar("_T", bound=Site) +_T = TypeVar("_T", bound=models.Model) class CurrentSiteManager(models.Manager[_T]): def __init__(self, field_name: str | None = ...) -> None: ...