From 7fe476c49ac493ac5f60b00a2e0d2167f3b8df10 Mon Sep 17 00:00:00 2001 From: Petter Friberg Date: Fri, 2 Aug 2024 09:59:36 +0200 Subject: [PATCH] Remove `BaseManager.cache` attribute (#2309) It doesn't exist at runtime --- django-stubs/db/models/manager.pyi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/django-stubs/db/models/manager.pyi b/django-stubs/db/models/manager.pyi index 7010c9125..710badb23 100644 --- a/django-stubs/db/models/manager.pyi +++ b/django-stubs/db/models/manager.pyi @@ -1,5 +1,5 @@ import datetime -from collections.abc import AsyncIterator, Callable, Collection, Iterable, Iterator, Mapping, Sequence +from collections.abc import AsyncIterator, Collection, Iterable, Iterator, Mapping, Sequence from typing import Any, Generic, NoReturn, TypeVar, overload from django.db.models.base import Model @@ -10,7 +10,6 @@ from typing_extensions import Self _T = TypeVar("_T", bound=Model, covariant=True) class BaseManager(Generic[_T]): - cache: Callable[[], Self] # django-cacheops creation_counter: int auto_created: bool use_in_migrations: bool