File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/sentry/db/models/manager Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 77from django .db import connections , router , transaction
88from django .db .models import QuerySet , sql
99
10- from sentry .db .models .manager .types import M
10+ from sentry .db .models .manager .types import M , R
1111from sentry .signals import post_update
1212
1313
14- class BaseQuerySet (QuerySet [M ]):
14+ class BaseQuerySet (QuerySet [M , R ]):
1515 def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
1616 super ().__init__ (* args , ** kwargs )
1717 self ._with_post_update_signal = False
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- from typing import TypeVar
4-
53from django .db .models import Model
4+ from typing_extensions import TypeVar
65
76M = TypeVar ("M" , bound = Model , covariant = True )
7+ R = TypeVar ("R" , covariant = True , default = M )
You can’t perform that action at this time.
0 commit comments