Skip to content

Commit c9d1b6e

Browse files
committed
fix bug in enum.Enum type annotation
1 parent d7c4f37 commit c9d1b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

function_schema/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_function_schema(
8080
# find enum in param_args tuple
8181
enum_ = next(
8282
(
83-
arg.name
83+
[e.name for e in arg]
8484
for arg in param_args
8585
if isinstance(arg, type) and issubclass(arg, enum.Enum)
8686
),

0 commit comments

Comments
 (0)