Skip to content

Commit a685e87

Browse files
committed
try to fix care about int and float difference between mac and linux
1 parent 923e8f8 commit a685e87

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

function_schema/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def guess_type(
171171
return _types
172172

173173
if origin is typing.Literal:
174-
return guess_type(
175-
typing.Union[tuple({type(arg) for arg in typing.get_args(T)})]
176-
)
174+
return guess_type(typing.Union[tuple(type(arg) for arg in typing.get_args(T))])
177175
elif origin is list or origin is tuple:
178176
return "array"
179177
elif origin is dict:

0 commit comments

Comments
 (0)