Jeremiah Lowin commited on
Commit
c6b741a
·
1 Parent(s): 2937184

Fix syntax issue prior to 3.12

Browse files
Files changed (1) hide show
  1. src/fastmcp/server/context.py +1 -1
src/fastmcp/server/context.py CHANGED
@@ -347,7 +347,7 @@ class Context:
347
  f"{response_type}"
348
  )
349
  # Convert list of options to Literal type and wrap
350
- choice_literal = Literal[*tuple(response_type)] # type: ignore
351
  response_type = ScalarElicitationType[choice_literal] # type: ignore
352
  # if the user provided a primitive scalar, wrap it in an object schema
353
  elif response_type in {bool, int, float, str}:
 
347
  f"{response_type}"
348
  )
349
  # Convert list of options to Literal type and wrap
350
+ choice_literal = Literal[tuple(response_type)] # type: ignore
351
  response_type = ScalarElicitationType[choice_literal] # type: ignore
352
  # if the user provided a primitive scalar, wrap it in an object schema
353
  elif response_type in {bool, int, float, str}: