fix CursorWrapper iter method (#628)

This commit is contained in:
horpto
2021-07-04 15:11:21 +03:00
committed by GitHub
parent 008dcdbcb6
commit d9c63f5e71

View File

@@ -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,