Skip to content

Commit 64a3aac

Browse files
Remove incorrect Reversible base class from QuerySet (#2094)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent e5f2159 commit 64a3aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django-stubs/db/models/query.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import datetime
2-
from collections.abc import AsyncIterator, Collection, Iterable, Iterator, MutableMapping, Reversible, Sequence, Sized
2+
from collections.abc import AsyncIterator, Collection, Iterable, Iterator, MutableMapping, Sequence, Sized
33
from typing import Any, Generic, NamedTuple, TypeVar, overload
44

55
from django.db.backends.utils import _ExecuteQuery
@@ -43,7 +43,7 @@ class NamedValuesListIterable(ValuesListIterable[NamedTuple]):
4343
class FlatValuesListIterable(BaseIterable[_Row]):
4444
def __iter__(self) -> Iterator[_Row]: ...
4545

46-
class _QuerySet(Generic[_T, _Row], Reversible[_Row], Iterable[_Row], Sized):
46+
class _QuerySet(Generic[_T, _Row], Iterable[_Row], Sized):
4747
model: type[_T]
4848
query: Query
4949
_iterable_class: type[BaseIterable]

0 commit comments

Comments
 (0)