You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a row_factory is set on a Connection, an arbitrary type may be returned instead of a row. In this case the type signature of Cursor.__aiter__and associated functions is wrong. It should be AsyncIterator[Any], not AsyncIterator[sqlite3.Row]. This causes a problem in e.g. mypy checking when code assumes characteristics of the output that are incompatible with sqlite3.Row. In such cases, mypy reports a false positive error.
Description
When a row_factory is set on a Connection, an arbitrary type may be returned instead of a row. In this case the type signature of
Cursor.__aiter__
and associated functions is wrong. It should beAsyncIterator[Any]
, notAsyncIterator[sqlite3.Row]
. This causes a problem in e.g. mypy checking when code assumes characteristics of the output that are incompatible withsqlite3.Row
. In such cases, mypy reports a false positive error.Details
The text was updated successfully, but these errors were encountered: