]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: define the Row TypeVar as defaulting to TupleRow
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 3 Jan 2024 00:44:22 +0000 (01:44 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 3 Jan 2024 03:08:01 +0000 (04:08 +0100)
commit323be52689ec4180e75c4dd0dd5fe7b1734e2387
treeb501fa317ca64b1d240e2e1e6e4099695257b03e
parent2c4c740c58ad1528dcd01f1893b933f50125d7c5
fix: define the Row TypeVar as defaulting to TupleRow

This allows to return `Self` uniformly from the `Connection.connect()` class
method, which in turns allows to subclass the connection without the
need of redefining the complex signature.

Close #308
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
psycopg/psycopg/crdb/connection.py
psycopg/psycopg/rows.py
psycopg_pool/psycopg_pool/pool.py
psycopg_pool/psycopg_pool/pool_async.py
tests/test_typing.py