Skip to content

Commit a44e8b3

Browse files
committed
fix: Remove StrEnum due to versioning
1 parent 66d675f commit a44e8b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mcp/server/elicitation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import annotations
44

55
import types
6-
from enum import Enum, StrEnum
6+
from enum import Enum
77
from typing import Generic, Literal, TypeVar, Union, get_args, get_origin
88

99
from pydantic import BaseModel
@@ -38,7 +38,7 @@ class CancelledElicitation(BaseModel):
3838

3939

4040
# Primitive types allowed in elicitation schemas
41-
_ELICITATION_PRIMITIVE_TYPES = (str, int, float, bool, StrEnum)
41+
_ELICITATION_PRIMITIVE_TYPES = (str, int, float, bool, Enum)
4242

4343

4444
def _validate_elicitation_schema(schema: type[BaseModel]) -> None:

0 commit comments

Comments
 (0)