mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
mypy: Enable new error explicit-override.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
d257002ad8
commit
a50eb2e809
@@ -4,6 +4,7 @@ from typing import Iterator, Optional
|
||||
import sqlalchemy
|
||||
from django.db import connection
|
||||
from sqlalchemy.engine import Connection, Engine
|
||||
from typing_extensions import override
|
||||
|
||||
from zerver.lib.db import TimeTrackingConnection
|
||||
|
||||
@@ -11,6 +12,7 @@ from zerver.lib.db import TimeTrackingConnection
|
||||
# This is a Pool that doesn't close connections. Therefore it can be used with
|
||||
# existing Django database connections.
|
||||
class NonClosingPool(sqlalchemy.pool.NullPool):
|
||||
@override
|
||||
def status(self) -> str:
|
||||
return "NonClosingPool"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user