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 24b4461 commit 86316a9Copy full SHA for 86316a9
src/murfey/util/api.py
@@ -115,7 +115,10 @@ def url_path_for(
115
message = f"Path param {param_name!r} was not provided"
116
logger.error(message)
117
raise KeyError(message)
118
- if type(kwargs[param_name]).__name__ != param_type:
+ # 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:
122
message = (
123
f"{param_name!r} must be {param_type!r}; "
124
f"received {type(kwargs[param_name]).__name__!r}"
0 commit comments