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 logging
from collections.abc import AsyncGenerator
from contextlib import asynccontextmanager
@ -12,8 +11,6 @@ from websockets.typing import Subprotocol
import mcp.types as types
from mcp.shared.message import SessionMessage
logger = logging.getLogger(__name__)
@asynccontextmanager
async def websocket_client(

View file

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

View file

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

View file

@ -1,4 +1,4 @@
from __future__ import annotations as _annotations
from __future__ import annotations
from collections.abc import Callable
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.
"""
from __future__ import annotations as _annotations
from __future__ import annotations
import base64
import contextvars

View file

@ -1,4 +1,4 @@
from __future__ import annotations as _annotations
from __future__ import annotations
import logging
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 datetime import datetime