ozzuke commited on
Commit
dd358c0
·
unverified ·
1 Parent(s): 8c0df0f

Fix typo in decorating-methods.mdx (#1344)

Browse files
docs/patterns/decorating-methods.mdx CHANGED
@@ -5,7 +5,7 @@ description: Properly use instance methods, class methods, and static methods wi
5
  icon: at
6
  ---
7
 
8
- FastMCP's decorator system is designed to work with functions, but you may see unexpected behavior if you try to decorate an instance or class method. This guide explains the correct approach for using methods with all FastMCP decorators (`@tool`, `@resource`, and `.prompt`).
9
 
10
  ## Why Are Methods Hard?
11
 
@@ -222,4 +222,4 @@ The current behavior of FastMCP decorators with methods is:
222
  For class and instance methods, you should register them after creating the instance or class to ensure proper method binding. This ensures that the methods are properly bound before being registered.
223
 
224
 
225
- Understanding these patterns allows you to effectively organize your components into classes while maintaining proper method binding, giving you the benefits of object-oriented design without sacrificing the simplicity of FastMCP's decorator system.
 
5
  icon: at
6
  ---
7
 
8
+ FastMCP's decorator system is designed to work with functions, but you may see unexpected behavior if you try to decorate an instance or class method. This guide explains the correct approach for using methods with all FastMCP decorators (`@tool`, `@resource`, and `@prompt`).
9
 
10
  ## Why Are Methods Hard?
11
 
 
222
  For class and instance methods, you should register them after creating the instance or class to ensure proper method binding. This ensures that the methods are properly bound before being registered.
223
 
224
 
225
+ Understanding these patterns allows you to effectively organize your components into classes while maintaining proper method binding, giving you the benefits of object-oriented design without sacrificing the simplicity of FastMCP's decorator system.