Skip to content

Commit

Permalink
Fix NoneType type as it requires py>=3.10 (#35843)
Browse files Browse the repository at this point in the history
fix type
  • Loading branch information
SunMarc authored and ArthurZucker committed Jan 30, 2025
1 parent f7b6047 commit b17abf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/utils/chat_template_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def _get_json_schema_type(param_type: str) -> Dict[str, str]:
float: {"type": "number"},
str: {"type": "string"},
bool: {"type": "boolean"},
type(None): {"type": "null"},
Any: {},
}
if is_vision_available():
Expand Down

0 comments on commit b17abf9

Please sign in to comment.