mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
11741543da
commit
6e4c3e41dc
@@ -15,7 +15,7 @@ class NonClosingPool(sqlalchemy.pool.NullPool):
|
||||
def _do_return_conn(self, conn: sqlalchemy.engine.base.Connection) -> None:
|
||||
pass
|
||||
|
||||
def recreate(self) -> 'NonClosingPool':
|
||||
def recreate(self) -> "NonClosingPool":
|
||||
return self.__class__(
|
||||
creator=self._creator, # type: ignore[attr-defined] # implementation detail
|
||||
recycle=self._recycle, # type: ignore[attr-defined] # implementation detail
|
||||
@@ -39,7 +39,7 @@ def get_sqlalchemy_connection() -> sqlalchemy.engine.base.Connection:
|
||||
return connection.connection
|
||||
|
||||
sqlalchemy_engine = sqlalchemy.create_engine(
|
||||
'postgresql://',
|
||||
"postgresql://",
|
||||
creator=get_dj_conn,
|
||||
poolclass=NonClosingPool,
|
||||
pool_reset_on_return=False,
|
||||
|
||||
Reference in New Issue
Block a user