mypy: minimal annotations to enable a clean run

This commit is contained in:
Sarah Hoffmann
2022-06-30 10:48:04 +02:00
parent b1903f0fbf
commit 9b636fdc10
5 changed files with 23 additions and 5 deletions

View File

@@ -7,6 +7,7 @@
"""
Nominatim configuration accessor.
"""
from typing import Dict, Any
import logging
import os
from pathlib import Path
@@ -18,7 +19,7 @@ from dotenv import dotenv_values
from nominatim.errors import UsageError
LOG = logging.getLogger()
CONFIG_CACHE = {}
CONFIG_CACHE : Dict[str, Any] = {}
def flatten_config_list(content, section=''):
""" Flatten YAML configuration lists that contain include sections