]> 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 02:51:11 +0000 (03:51 +0100)
commitfcdc8df2a873551277ae2860949d14cf5b9214d1
tree020a9976cd3381358da7f71d305326bfae61aceb
parent885acd7c89e8f1cbb18e77f17116a89964643428
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