Skip to content

Commit

Permalink
Remove incorrect Reversible base class from QuerySet (#2094)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
intgr and pre-commit-ci[bot] authored Apr 30, 2024
1 parent e5f2159 commit 64a3aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/db/models/query.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import datetime
from collections.abc import AsyncIterator, Collection, Iterable, Iterator, MutableMapping, Reversible, Sequence, Sized
from collections.abc import AsyncIterator, Collection, Iterable, Iterator, MutableMapping, Sequence, Sized
from typing import Any, Generic, NamedTuple, TypeVar, overload

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

class _QuerySet(Generic[_T, _Row], Reversible[_Row], Iterable[_Row], Sized):
class _QuerySet(Generic[_T, _Row], Iterable[_Row], Sized):
model: type[_T]
query: Query
_iterable_class: type[BaseIterable]
Expand Down

0 comments on commit 64a3aac

Please sign in to comment.