From 7158433cd38096f38b2d97c1ea096b14bd91adba Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 30 Jan 2021 16:27:02 +0100 Subject: [PATCH] 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. --- nominatim/cli.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.39.5