Skip to content

Commit 4786ada

Browse files
committed
chore: drop as _annotations
1 parent 0da9a07 commit 4786ada

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

src/mcp/client/websocket.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import json
2-
import logging
32
from collections.abc import AsyncGenerator
43
from contextlib import asynccontextmanager
54

@@ -12,8 +11,6 @@
1211
import mcp.types as types
1312
from mcp.shared.message import SessionMessage
1413

15-
logger = logging.getLogger(__name__)
16-
1714

1815
@asynccontextmanager
1916
async def websocket_client(

src/mcp/server/fastmcp/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""FastMCP - A more ergonomic interface for MCP servers."""
22

3-
from __future__ import annotations as _annotations
3+
from __future__ import annotations
44

55
import inspect
66
import re

src/mcp/server/fastmcp/tools/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations as _annotations
1+
from __future__ import annotations
22

33
import functools
44
import inspect

src/mcp/server/fastmcp/tools/tool_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations as _annotations
1+
from __future__ import annotations
22

33
from collections.abc import Callable
44
from typing import TYPE_CHECKING, Any

src/mcp/server/lowlevel/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def main():
6565
messages from the client.
6666
"""
6767

68-
from __future__ import annotations as _annotations
68+
from __future__ import annotations
6969

7070
import base64
7171
import contextvars

src/mcp/shared/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations as _annotations
1+
from __future__ import annotations
22

33
import logging
44
from collections.abc import Callable

src/mcp/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from __future__ import annotations as _annotations
1+
from __future__ import annotations
22

33
from collections.abc import Callable
44
from datetime import datetime

0 commit comments

Comments
 (0)