Skip to content

Commit 4c3d8a2

Browse files
committed
Fix type check
1 parent f6b810d commit 4c3d8a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sanic_ext/extras/validation/clean.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def clean_data(model: type[object], data: dict[str, Any]) -> dict[str, Any]:
88

99
def _coerce(param_type, value: Any) -> Any:
1010
if (
11-
get_origin(param_type) is list
11+
get_origin(param_type) is not list
1212
and isinstance(value, list)
1313
and len(value) == 1
1414
):

0 commit comments

Comments
 (0)