X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f22fa992f7975757d84ae17e42ff98c15f7a572b..282a61ce51d1fe619f5bbbf4d1b283fe4c84f8db:/nominatim/typing.py diff --git a/nominatim/typing.py b/nominatim/typing.py index abecc53d..6d754989 100644 --- a/nominatim/typing.py +++ b/nominatim/typing.py @@ -9,7 +9,7 @@ Type definitions for typing annotations. Complex type definitions are moved here, to keep the source files readable. """ -from typing import Union, TypeVar, TYPE_CHECKING +from typing import Union, Mapping, TypeVar, TYPE_CHECKING # Generics varaible names do not confirm to naming styles, ignore globally here. # pylint: disable=invalid-name @@ -21,6 +21,8 @@ if TYPE_CHECKING: StrPath = Union[str, 'os.PathLike[str]'] +SysEnv = Mapping[str, str] + # psycopg2-related types Query = Union[str, bytes, 'psycopg2.sql.Composable']