]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/typing.py
add typing information for utils submodule
[nominatim.git] / nominatim / typing.py
index abecc53db8975c43e0f9a51a0edaf8003e1baac3..6d7549899bda1ae674c4ee42a0a717ea10eb0445 100644 (file)
@@ -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']