]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_api/types.py
release 4.5.0.post2
[nominatim.git] / src / nominatim_api / types.py
index 6c8adeb82603dda3845b80584c10a5babfdd9da7..0dea1d1bc7127c664350e10b5fd2efe6fb30dc3f 100644 (file)
@@ -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