export UsageError and Configuration in api directly

Library users should not have to deal with the core package directly.
This commit is contained in:
Sarah Hoffmann 2024-06-12 10:27:10 +02:00
parent 3ba330c948
commit ab746eebaf
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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.