From ba7b44879a717386b37532dfa3c2bd228df07a6d Mon Sep 17 00:00:00 2001 From: Juergen Eger <11678629+jeger-at@users.noreply.github.com> Date: Tue, 29 Apr 2025 08:27:34 +0000 Subject: [PATCH] fix ruff number 123 --- src/fastmcp/server/openapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastmcp/server/openapi.py b/src/fastmcp/server/openapi.py index 931edd00b..ea8388ec0 100644 --- a/src/fastmcp/server/openapi.py +++ b/src/fastmcp/server/openapi.py @@ -278,7 +278,7 @@ class OpenAPIResource(Resource): if "{" in path and "}" in path: # Extract the resource ID from the URI (the last part after the last slash) parts = resource_uri.split("/") - + if len(parts) > 1: # Find all path parameters in the route path path_params = {}