Skip to content

Commit cc0c61c

Browse files
committed
fix: line length
1 parent 3127e10 commit cc0c61c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runpod/serverless/utils/rp_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def validate(raw_input: Dict[str, Any], schema: Dict[str, Any]
7373
validated_input[key] = float(raw_input[key])
7474

7575
# Check for the correct type.
76-
if not isinstance(validated_input[key], rules['type']) and raw_input.get(key, None) is not None:
76+
if not isinstance(validated_input[key], rules['type']) and raw_input.get(key, False):
7777
_add_error(
7878
error_list, f"{key} should be {rules['type']} type, not {type(raw_input[key])}.")
7979

0 commit comments

Comments
 (0)