Skip to content

Commit

Permalink
Add __iter__ to Row to declare it as iterable (#1148)
Browse files Browse the repository at this point in the history
avoids typing warnings on iter()-like operations, e.g. zip(), etc.
  • Loading branch information
baluyotraf authored Jan 11, 2023
1 parent 2338297 commit 4829107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyodbc.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@ class Row:
def __getattribute__(self, name, /) -> Any: ...
def __getitem__(self, key, /) -> Any: ...
def __gt__(self, value, /) -> bool: ...
def __iter__(self) -> Iterator[Any]: ...
def __le__(self, value, /) -> bool: ...
def __len__(self, /) -> int: ...
def __lt__(self, value, /) -> bool: ...
Expand Down

0 comments on commit 4829107

Please sign in to comment.