Skip to content

Commit 86316a9

Browse files
committed
Some types are complicated 'typing' strings; skip validating those for now
1 parent 24b4461 commit 86316a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/murfey/util/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def url_path_for(
115115
message = f"Path param {param_name!r} was not provided"
116116
logger.error(message)
117117
raise KeyError(message)
118-
if type(kwargs[param_name]).__name__ != param_type:
118+
# Skip complicated type resolution for now
119+
if param_type.startswith("typing."):
120+
continue
121+
elif type(kwargs[param_name]).__name__ not in param_type:
119122
message = (
120123
f"{param_name!r} must be {param_type!r}; "
121124
f"received {type(kwargs[param_name]).__name__!r}"

0 commit comments

Comments
 (0)