mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Fix syntax issue prior to 3.12
This commit is contained in:
parent
6ff4022afa
commit
063c63f590
1 changed files with 1 additions and 1 deletions
|
|
@ -347,7 +347,7 @@ class Context:
|
|||
f"{response_type}"
|
||||
)
|
||||
# Convert list of options to Literal type and wrap
|
||||
choice_literal = Literal[*tuple(response_type)] # type: ignore
|
||||
choice_literal = Literal[tuple(response_type)] # type: ignore
|
||||
response_type = ScalarElicitationType[choice_literal] # type: ignore
|
||||
# if the user provided a primitive scalar, wrap it in an object schema
|
||||
elif response_type in {bool, int, float, str}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue