Skip to content

Commit de5c74d

Browse files
committed
Adjusted if-block conditions and updated comments
1 parent 7623c35 commit de5c74d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/murfey/util/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ def url_path_for(
121121
)
122122
logger.error(message)
123123
raise KeyError(message)
124-
# Skip complicated type resolution for now
124+
# Skip complicated type resolution
125125
if param_type.startswith("typing."):
126126
continue
127-
elif type(kwargs[param_name]).__name__ not in param_type:
127+
# Validate incoming type against allowed ones
128+
if type(kwargs[param_name]).__name__ not in param_type:
128129
message = (
129130
f"Error validating parameters for {function_name!r}; "
130131
f"{param_name!r} must be {param_type!r}, "

0 commit comments

Comments
 (0)