Skip to content

Commit f8733f1

Browse files
committed
fixup! refactor: extract common context injection pattern
1 parent 17738fb commit f8733f1

File tree

2 files changed

+57
-7
lines changed

2 files changed

+57
-7
lines changed

src/mcp/server/fastmcp/utilities/context_injection.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44

55
import inspect
66
from collections.abc import Callable
7-
from typing import TYPE_CHECKING, Any, get_origin
8-
9-
if TYPE_CHECKING:
10-
pass
7+
from typing import Any, get_origin
118

129

1310
def find_context_parameter(fn: Callable[..., Any]) -> str | None:

uv.lock

Lines changed: 56 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)