Skip to content

Commit 8446e3d

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: support None as return type, such as def func() -> None:
PiperOrigin-RevId: 764365009
1 parent 5b5a750 commit 8446e3d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

google/genai/_automatic_function_calling_util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
bool: types.Type.BOOLEAN,
3838
list: types.Type.ARRAY,
3939
dict: types.Type.OBJECT,
40+
None: types.Type.NULL,
4041
}
4142

4243

0 commit comments

Comments
 (0)