mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-15 00:07:09 +08:00
chore: remove excess # type: ignore comments in _ValuesQuerySet (#662)
This commit is contained in:
@@ -140,20 +140,20 @@ _Row = TypeVar("_Row", covariant=True)
|
|||||||
class _ValuesQuerySet(Generic[_T, _Row], Collection[_Row], Reversible[_Row], QuerySet[_T], Sized): # type: ignore
|
class _ValuesQuerySet(Generic[_T, _Row], Collection[_Row], Reversible[_Row], QuerySet[_T], Sized): # type: ignore
|
||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
def __contains__(self, x: object) -> bool: ...
|
def __contains__(self, x: object) -> bool: ...
|
||||||
def __iter__(self) -> Iterator[_Row]: ... # type: ignore
|
def __iter__(self) -> Iterator[_Row]: ...
|
||||||
@overload # type: ignore
|
@overload
|
||||||
def __getitem__(self, i: int) -> _Row: ...
|
def __getitem__(self, i: int) -> _Row: ...
|
||||||
@overload
|
@overload
|
||||||
def __getitem__(self: _QS, s: slice) -> _QS: ... # type: ignore
|
def __getitem__(self: _QS, s: slice) -> _QS: ... # type: ignore
|
||||||
def iterator(self, chunk_size: int = ...) -> Iterator[_Row]: ... # type: ignore
|
def iterator(self, chunk_size: int = ...) -> Iterator[_Row]: ...
|
||||||
def get(self, *args: Any, **kwargs: Any) -> _Row: ... # type: ignore
|
def get(self, *args: Any, **kwargs: Any) -> _Row: ...
|
||||||
def earliest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... # type: ignore
|
def earliest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ...
|
||||||
def latest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ... # type: ignore
|
def latest(self, *fields: Any, field_name: Optional[Any] = ...) -> _Row: ...
|
||||||
def first(self) -> Optional[_Row]: ... # type: ignore
|
def first(self) -> Optional[_Row]: ...
|
||||||
def last(self) -> Optional[_Row]: ... # type: ignore
|
def last(self) -> Optional[_Row]: ...
|
||||||
def distinct(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ... # type: ignore
|
def distinct(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ...
|
||||||
def order_by(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ... # type: ignore
|
def order_by(self, *field_names: Any) -> _ValuesQuerySet[_T, _Row]: ...
|
||||||
def all(self) -> _ValuesQuerySet[_T, _Row]: ... # type: ignore
|
def all(self) -> _ValuesQuerySet[_T, _Row]: ...
|
||||||
def annotate(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, Any]: ...
|
def annotate(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, Any]: ...
|
||||||
def filter(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, _Row]: ...
|
def filter(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, _Row]: ...
|
||||||
def exclude(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, _Row]: ...
|
def exclude(self, *args: Any, **kwargs: Any) -> _ValuesQuerySet[_T, _Row]: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user