type annotations for DB utils

This commit is contained in:
Sarah Hoffmann
2022-07-02 10:18:10 +02:00
parent e6ee3c772c
commit 992e6f72cf
2 changed files with 11 additions and 3 deletions

View File

@@ -226,7 +226,7 @@ _PG_CONNECTION_STRINGS = {
def get_pg_env(dsn: str,
base_env: Optional[Mapping[str, Optional[str]]] = None) -> Mapping[str, Optional[str]]:
base_env: Optional[Mapping[str, str]] = None) -> Mapping[str, str]:
""" Return a copy of `base_env` with the environment variables for
PostgresSQL set up from the given database connection string.
If `base_env` is None, then the OS environment is used as a base