X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/bc75e5626ec59523707b842022ecf0bdc159cf06..ae8694a6a6862d7cb66cd91102d2802c9899e7cf:/src/nominatim_db/clicmd/admin.py diff --git a/src/nominatim_db/clicmd/admin.py b/src/nominatim_db/clicmd/admin.py index 1edff174..85482ea4 100644 --- a/src/nominatim_db/clicmd/admin.py +++ b/src/nominatim_db/clicmd/admin.py @@ -15,10 +15,6 @@ from ..errors import UsageError from ..db.connection import connect, table_exists from .args import NominatimArgs -# Do not repeat documentation of subcommand classes. -# pylint: disable=C0111 -# Using non-top-level imports to avoid eventually unused imports. -# pylint: disable=E0012,C0415 LOG = logging.getLogger() @@ -57,9 +53,7 @@ class AdminFuncs: mgroup.add_argument('--place-id', type=int, help='Analyse indexing of the given Nominatim object') - def run(self, args: NominatimArgs) -> int: - # pylint: disable=too-many-return-statements if args.warm: return self._warm(args) @@ -93,7 +87,6 @@ class AdminFuncs: return 1 - def _warm(self, args: NominatimArgs) -> int: try: import nominatim_api as napi