mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
sqlalchemy_utils: Remove NonClosingPool.recreate override.
There doesn’t seem to be a reason to override this, and the upstream method it was based on has diverged since this was written. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
29330c180a
commit
ad232c9b65
@@ -17,16 +17,6 @@ class NonClosingPool(sqlalchemy.pool.NullPool):
|
||||
def _do_return_conn(self, conn: sqlalchemy.engine.base.Connection) -> None:
|
||||
pass
|
||||
|
||||
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
|
||||
reset_on_return=self._reset_on_return, # type: ignore[attr-defined] # implementation detail
|
||||
echo=self.echo,
|
||||
logging_name=self._orig_logging_name, # type: ignore[attr-defined] # implementation detail
|
||||
_dispatch=self.dispatch, # type: ignore[attr-defined] # implementation detail
|
||||
)
|
||||
|
||||
|
||||
sqlalchemy_engine: Optional[Engine] = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user