diff --git a/fastmcp_slim/fastmcp/resources/template.py b/fastmcp_slim/fastmcp/resources/template.py index 14332ba74..fb1d7832b 100644 --- a/fastmcp_slim/fastmcp/resources/template.py +++ b/fastmcp_slim/fastmcp/resources/template.py @@ -580,8 +580,9 @@ class FunctionResourceTemplate(ResourceTemplate): try: hints = _resolve_param_hints(fn) except NameError: - # An annotation naming something we can't import here is not - # worth failing registration over; fall back to the raw form. + # Pydantic resolves annotations against namespaces this doesn't + # see, so a name we can't resolve may still be valid. Fall back + # to the raw form rather than failing a working registration. hints = {} exploded = {