Skip to content

Commit c78e98a

Browse files
committed
Use Transport.__members__ for Python 3.11 compat
1 parent 2ffc1de commit c78e98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcp_grafana/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run(self, transport: Literal["http", "stdio", "sse"] = "stdio") -> None:
5454
Args:
5555
transport: Transport protocol to use ("stdio" or "sse")
5656
"""
57-
if transport not in Transport:
57+
if transport not in Transport.__members__:
5858
raise ValueError(f"Unknown transport: {transport}")
5959

6060
if transport == "stdio":

0 commit comments

Comments
 (0)