0
0
Fork 0
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 ()

This commit is contained in:
Nick Satterly 2018-08-23 11:35:14 +02:00 committed by GitHub
parent d1a7971f33
commit e0bce26a58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 93 additions and 43 deletions
alerta/database/backends/postgres

View file

@ -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):