]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Adjust return type of ServerCursorHelper._fetch_gen()
authorDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 12 Apr 2021 12:08:35 +0000 (14:08 +0200)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 23 Apr 2021 06:50:16 +0000 (08:50 +0200)
commit5e039c0e08d66c7e767cbafcbfcf3cdb8fc937f2
treecabfabf8b11bf122fa7f1859bf291ccb50e74e9d
parent6ba1756bfc26d2711a756ac60e0ca7da9b648974
Adjust return type of ServerCursorHelper._fetch_gen()

This method returns cur._tx.load_rows() which return type is List[Row].

We now need 'type: ignore[no-any-return]' in fetchone() methods or
server cursor classes, similarly as in client cursor classes.
psycopg3/psycopg3/server_cursor.py