From d9c63f5e71818a3e751a78bc9bca90768def63e5 Mon Sep 17 00:00:00 2001 From: horpto <__Singleton__@hackerdom.ru> Date: Sun, 4 Jul 2021 15:11:21 +0300 Subject: [PATCH] fix CursorWrapper iter method (#628) --- django-stubs/db/backends/utils.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/db/backends/utils.pyi b/django-stubs/db/backends/utils.pyi index 4b01949..4a377cb 100644 --- a/django-stubs/db/backends/utils.pyi +++ b/django-stubs/db/backends/utils.pyi @@ -7,7 +7,7 @@ from uuid import UUID logger: Any # Python types that can be adapted to SQL. -_SQLType = Union[None, bool, int, float, Decimal, str, bytes, datetime, UUID] +_SQLType = Union[None, bool, int, float, Decimal, str, bytes, date, datetime, UUID, Tuple[Any, ...], List[Any]] _ExecuteParameters = Optional[Union[Sequence[_SQLType], Mapping[str, _SQLType]]] class CursorWrapper: @@ -16,7 +16,7 @@ class CursorWrapper: def __init__(self, cursor: Any, db: Any) -> None: ... WRAP_ERROR_ATTRS: Any = ... def __getattr__(self, attr: str) -> Any: ... - def __iter__(self) -> None: ... + def __iter__(self) -> Iterator[Tuple[Any, ...]]: ... def __enter__(self) -> CursorWrapper: ... def __exit__( self,