mypy: add typing annotations for novel lister abstractions

This commit is contained in:
Stefano Zacchiroli 2019-10-18 17:32:03 +02:00
parent 7dfd811e16
commit 6159faa2f5
3 changed files with 7 additions and 6 deletions

View file

@ -3,13 +3,13 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
from typing import Any, Mapping, Optional
from typing import Any, List, Mapping, Optional
def debian_init(db_engine, lister=None,
override_conf: Optional[Mapping[str, Any]] = None,
distributions: Optional[str] = ['stretch', 'buster'],
area_names: Optional[str] = ['main', 'contrib', 'non-free']):
distributions: List[str] = ['stretch', 'buster'],
area_names: List[str] = ['main', 'contrib', 'non-free']):
"""Initialize the debian data model.
Args: