Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

sqlalchemy_utils: Remove NonClosingPool.recreate override.

Anders Kaseorgad232c9b65b2
diff --git a/zerver/lib/sqlalchemy_utils.py b/zerver/lib/sqlalchemy_utils.py
index b12a82f5081..9bc78b8fe05 100644
--- a/zerver/lib/sqlalchemy_utils.py
+++ b/zerver/lib/sqlalchemy_utils.py
@@ -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