From ab746eebaf2489f4966bfffded647e33ea1c7d4b Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 12 Jun 2024 10:27:10 +0200 Subject: [PATCH] export UsageError and Configuration in api directly Library users should not have to deal with the core package directly. --- src/nominatim_api/__init__.py | 3 +++ src/nominatim_core/config.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nominatim_api/__init__.py b/src/nominatim_api/__init__.py index 3ffe0c27..0f02f979 100644 --- a/src/nominatim_api/__init__.py +++ b/src/nominatim_api/__init__.py @@ -14,6 +14,9 @@ import from this file, not from the source files directly. # See also https://github.com/PyCQA/pylint/issues/6006 # pylint: disable=useless-import-alias +from nominatim_core.errors import (UsageError as UsageError) +from nominatim_core.config import (Configuration as Configuration) + from .core import (NominatimAPI as NominatimAPI, NominatimAPIAsync as NominatimAPIAsync) from .connection import (SearchConnection as SearchConnection) diff --git a/src/nominatim_core/config.py b/src/nominatim_core/config.py index 5393b543..f4c925eb 100644 --- a/src/nominatim_core/config.py +++ b/src/nominatim_core/config.py @@ -2,7 +2,7 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2022 by the Nominatim developer community. +# Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Nominatim configuration accessor. -- 2.39.5