]> git.ipfire.org Git - thirdparty/psycopg.git/commit
feat: let Connection.pipeline() return the Pipeline object
authorDenis Laxalde <denis@laxalde.org>
Sun, 27 Mar 2022 10:56:40 +0000 (12:56 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 23:17:57 +0000 (01:17 +0200)
commit862ae37db5a6b980192b9e8bcb899af7944a2e41
treec8d89d76b2e32ccc5a5ffb82d695b7ad7356e984
parent7900ea8c4063e85396d0f53366ed13f6c86c2401
feat: let Connection.pipeline() return the Pipeline object

In tests, add a type annotation on 'conn'/'aconn' fixture so that mypy
understands that pipeline() yields a Pipeline object.
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
tests/test_pipeline.py
tests/test_pipeline_async.py