From: Daniele Varrazzo Date: Sat, 6 Jan 2024 12:50:05 +0000 (+0100) Subject: style: drop unneeded function definition split X-Git-Tag: 3.2.0~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2a45087c7c07bac4fb0e1468b94882c36a31b25;p=thirdparty%2Fpsycopg.git style: drop unneeded function definition split --- diff --git a/psycopg/psycopg/_connection_base.py b/psycopg/psycopg/_connection_base.py index 3a1bfe468..003495cfc 100644 --- a/psycopg/psycopg/_connection_base.py +++ b/psycopg/psycopg/_connection_base.py @@ -420,10 +420,7 @@ class BaseConnection(Generic[Row]): # should have a lock and hold it before calling and consuming them. @classmethod - def _connect_gen( - cls, - conninfo: str = "", - ) -> PQGenConn[Self]: + def _connect_gen(cls, conninfo: str = "") -> PQGenConn[Self]: """Generator to connect to the database and create a new instance.""" pgconn = yield from generators.connect(conninfo) conn = cls(pgconn)