We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 923e8f8 commit a685e87Copy full SHA for a685e87
1 file changed
function_schema/core.py
@@ -171,9 +171,7 @@ def guess_type(
171
return _types
172
173
if origin is typing.Literal:
174
- return guess_type(
175
- typing.Union[tuple({type(arg) for arg in typing.get_args(T)})]
176
- )
+ return guess_type(typing.Union[tuple(type(arg) for arg in typing.get_args(T))])
177
elif origin is list or origin is tuple:
178
return "array"
179
elif origin is dict:
0 commit comments