From: Sarah Hoffmann Date: Sat, 30 Jan 2021 15:27:02 +0000 (+0100) Subject: disable warning about non-toplevel import X-Git-Tag: v3.7.0~46^2~2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/7158433cd38096f38b2d97c1ea096b14bd91adba disable warning about non-toplevel import They are needed here so nominatim can be run when osmium is not installed. Everything except replication will work fine. --- diff --git a/nominatim/cli.py b/nominatim/cli.py index cc591ea5..487206c1 100644 --- a/nominatim/cli.py +++ b/nominatim/cli.py @@ -123,6 +123,8 @@ def _osm2pgsql_options_from_args(args, default_cache, default_threads): # # No need to document the functions each time. # pylint: disable=C0111 +# Using non-top-level imports to make pyosmium optional for replication only. +# pylint: disable=C0415 class SetupAll: