Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
f76d950
1
Parent(s): ec6bd43
Fix indentation
Browse files
tests/server/test_server.py
CHANGED
|
@@ -264,9 +264,9 @@ class TestToolDecorator:
|
|
| 264 |
"""Test that the recommended decorator order works for static methods"""
|
| 265 |
mcp = FastMCP()
|
| 266 |
|
| 267 |
-
|
|
|
|
| 268 |
@staticmethod
|
| 269 |
-
@mcp.tool
|
| 270 |
def add_v1(x: int, y: int) -> int:
|
| 271 |
return x + y
|
| 272 |
|
|
|
|
| 264 |
"""Test that the recommended decorator order works for static methods"""
|
| 265 |
mcp = FastMCP()
|
| 266 |
|
| 267 |
+
class MyClass:
|
| 268 |
+
@mcp.tool
|
| 269 |
@staticmethod
|
|
|
|
| 270 |
def add_v1(x: int, y: int) -> int:
|
| 271 |
return x + y
|
| 272 |
|