mirror of
https://github.com/alerta/alerta.git
synced 2025-05-17 06:32:22 +00:00
Run mypy during build checks and start adding type hints (#607)
This commit is contained in:
parent
d1a7971f33
commit
e0bce26a58
20 changed files with 93 additions and 43 deletions
alerta/database/backends/postgres
|
@ -8,7 +8,7 @@ from alerta.database.base import QueryBuilder
|
|||
from alerta.utils.format import DateTime
|
||||
|
||||
Query = namedtuple('Query', ['where', 'vars', 'sort', 'group'])
|
||||
Query.__new__.__defaults__ = ('1=1', {}, 'last_receive_time', 'status')
|
||||
Query.__new__.__defaults__ = ('1=1', {}, 'last_receive_time', 'status') # type: ignore
|
||||
|
||||
|
||||
class QueryBuilderImpl(QueryBuilder):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue