We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7623c35 commit de5c74dCopy full SHA for de5c74d
src/murfey/util/api.py
@@ -121,10 +121,11 @@ def url_path_for(
121
)
122
logger.error(message)
123
raise KeyError(message)
124
- # Skip complicated type resolution for now
+ # Skip complicated type resolution
125
if param_type.startswith("typing."):
126
continue
127
- elif type(kwargs[param_name]).__name__ not in param_type:
+ # Validate incoming type against allowed ones
128
+ if type(kwargs[param_name]).__name__ not in param_type:
129
message = (
130
f"Error validating parameters for {function_name!r}; "
131
f"{param_name!r} must be {param_type!r}, "
0 commit comments