From 60f3f9dd9f09a84f271de976391b9e5101e4392d Mon Sep 17 00:00:00 2001 From: Daniel Hillier Date: Sun, 9 Aug 2020 03:21:55 +1000 Subject: [PATCH] Change select_for_update's 'of' type to Sequence[str] (#440) --- django-stubs/db/models/query.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/db/models/query.pyi b/django-stubs/db/models/query.pyi index 5322414..901884d 100644 --- a/django-stubs/db/models/query.pyi +++ b/django-stubs/db/models/query.pyi @@ -96,7 +96,7 @@ class _BaseQuerySet(Generic[_T], Sized): def union(self: _QS, *other_qs: Any, all: bool = ...) -> _QS: ... def intersection(self: _QS, *other_qs: Any) -> _QS: ... def difference(self: _QS, *other_qs: Any) -> _QS: ... - def select_for_update(self: _QS, nowait: bool = ..., skip_locked: bool = ..., of: Tuple = ...) -> _QS: ... + def select_for_update(self: _QS, nowait: bool = ..., skip_locked: bool = ..., of: Sequence[str] = ...) -> _QS: ... def select_related(self: _QS, *fields: Any) -> _QS: ... def prefetch_related(self: _QS, *lookups: Any) -> _QS: ... # TODO: return type