-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: add row type to our custom QuerySet (#73589)
this matches the signature and generics from `django-stubs` <!-- Describe your PR here. -->
- Loading branch information
1 parent
adfd52e
commit 2e04c9e
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from __future__ import annotations | ||
|
||
from typing import TypeVar | ||
|
||
from django.db.models import Model | ||
from typing_extensions import TypeVar | ||
|
||
M = TypeVar("M", bound=Model, covariant=True) | ||
R = TypeVar("R", covariant=True, default=M) |