mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-12 23:16:31 +08:00
fix CursorWrapper iter method (#628)
This commit is contained in:
@@ -7,7 +7,7 @@ from uuid import UUID
|
|||||||
logger: Any
|
logger: Any
|
||||||
|
|
||||||
# Python types that can be adapted to SQL.
|
# 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]]]
|
_ExecuteParameters = Optional[Union[Sequence[_SQLType], Mapping[str, _SQLType]]]
|
||||||
|
|
||||||
class CursorWrapper:
|
class CursorWrapper:
|
||||||
@@ -16,7 +16,7 @@ class CursorWrapper:
|
|||||||
def __init__(self, cursor: Any, db: Any) -> None: ...
|
def __init__(self, cursor: Any, db: Any) -> None: ...
|
||||||
WRAP_ERROR_ATTRS: Any = ...
|
WRAP_ERROR_ATTRS: Any = ...
|
||||||
def __getattr__(self, attr: str) -> Any: ...
|
def __getattr__(self, attr: str) -> Any: ...
|
||||||
def __iter__(self) -> None: ...
|
def __iter__(self) -> Iterator[Tuple[Any, ...]]: ...
|
||||||
def __enter__(self) -> CursorWrapper: ...
|
def __enter__(self) -> CursorWrapper: ...
|
||||||
def __exit__(
|
def __exit__(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user