diff --git a/django-stubs/db/models/query.pyi b/django-stubs/db/models/query.pyi index f3207f5..034fac0 100644 --- a/django-stubs/db/models/query.pyi +++ b/django-stubs/db/models/query.pyi @@ -140,20 +140,20 @@ _Row = TypeVar("_Row", covariant=True) class _ValuesQuerySet(Generic[_T, _Row], Collection[_Row], Reversible[_Row], QuerySet[_T], Sized): # type: ignore def __len__(self) -> int: ... def __contains__(self, x: object) -> bool: ... - def __iter__(self) -> Iterator[_Row]: ... # type: ignore - @overload # type: ignore + def __iter__(self) -> Iterator[_Row]: ... + @overload def __getitem__(self, i: int) -> _Row: ... @overload def __getitem__(self: _QS, s: slice) -> _QS: ... # type: ignore - def iterator(self, chunk_size: int = ...) -> Iterator[_Row]: ... # type: ignore - def get(self, *args: Any, **kwargs: Any) -> _Row: ... # type: ignore - def earliest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... # type: ignore - def latest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... # type: ignore - def first(self) -> Optional[_Row]: ... # type: ignore - def last(self) -> Optional[_Row]: ... # type: ignore - def distinct(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ... # type: ignore - def order_by(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ... # type: ignore - def all(self) -> _ValuesQuerySet[_T, _Row]: ... # type: ignore + def iterator(self, chunk_size: int = ...) -> Iterator[_Row]: ... + def get(self, *args: Any, **kwargs: Any) -> _Row: ... + def earliest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... + def latest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... + def first(self) -> Optional[_Row]: ... + def last(self) -> Optional[_Row]: ... + def distinct(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ... + def order_by(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ... + def all(self) -> _ValuesQuerySet[_T, _Row]: ... def annotate(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, Any]: ... def filter(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, _Row]: ... def exclude(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, _Row]: ...