Skip to content

Commit b17abf9

Browse files
SunMarcArthurZucker
authored andcommitted
Fix NoneType type as it requires py>=3.10 (#35843)
fix type
1 parent f7b6047 commit b17abf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transformers/utils/chat_template_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def _get_json_schema_type(param_type: str) -> Dict[str, str]:
7777
float: {"type": "number"},
7878
str: {"type": "string"},
7979
bool: {"type": "boolean"},
80+
type(None): {"type": "null"},
8081
Any: {},
8182
}
8283
if is_vision_available():

0 commit comments

Comments
 (0)