X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ea98317370d0138ed1244d6a5fd884ce32f9b77a..2c0f2e1eded166fa27471bc640420713a2bb964f:/src/nominatim_api/types.py diff --git a/src/nominatim_api/types.py b/src/nominatim_api/types.py index 6c8adeb8..0dea1d1b 100644 --- a/src/nominatim_api/types.py +++ b/src/nominatim_api/types.py @@ -434,7 +434,7 @@ class LookupDetails: else field.default if field.metadata and 'transform' in field.metadata: return field.metadata['transform'](v) - if not isinstance(v, field.type): + if not isinstance(v, field.type): # type: ignore[arg-type] raise UsageError(f"Parameter '{field.name}' needs to be of {field.type!s}.") return v