chore: drop as _annotations (#1858)

This commit is contained in:
Marcelo Trylesinski 2026-01-15 11:07:06 +01:00 • committed by GitHub
commit 32a4587da9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 6 additions and 9 deletions

View file

@ -1,5 +1,4 @@
import json import json
import logging
from collections.abc import AsyncGenerator from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager from contextlib import asynccontextmanager
@ -12,8 +11,6 @@ from websockets.typing import Subprotocol
import mcp.types as types import mcp.types as types
from mcp.shared.message import SessionMessage from mcp.shared.message import SessionMessage
logger = logging.getLogger(__name__)
@asynccontextmanager @asynccontextmanager
async def websocket_client( async def websocket_client(

View file

@ -1,6 +1,6 @@
"""FastMCP - A more ergonomic interface for MCP servers.""" """FastMCP - A more ergonomic interface for MCP servers."""
from __future__ import annotations as _annotations from __future__ import annotations
import inspect import inspect
import re import re

View file

@ -1,4 +1,4 @@
from __future__ import annotations as _annotations from __future__ import annotations
import functools import functools
import inspect import inspect

View file

@ -1,4 +1,4 @@
from __future__ import annotations as _annotations from __future__ import annotations
from collections.abc import Callable from collections.abc import Callable
from typing import TYPE_CHECKING, Any from typing import TYPE_CHECKING, Any

View file

@ -65,7 +65,7 @@ notifications. It automatically manages the request context and handles incoming
messages from the client. messages from the client.
""" """
from __future__ import annotations as _annotations from __future__ import annotations
import base64 import base64
import contextvars import contextvars

View file

@ -1,4 +1,4 @@
from __future__ import annotations as _annotations from __future__ import annotations
import logging import logging
from collections.abc import Callable from collections.abc import Callable

View file

@ -1,4 +1,4 @@
from __future__ import annotations as _annotations from __future__ import annotations
from collections.abc import Callable from collections.abc import Callable
from datetime import datetime from datetime import datetime