Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
718f33c
1
Parent(s): f1e6d16
Remove old docstring note
Browse files
src/fastmcp/utilities/types.py
CHANGED
|
@@ -35,9 +35,6 @@ def get_cached_typeadapter(cls: T) -> TypeAdapter[T]:
|
|
| 35 |
create them once in a global scope and reuse them as often as possible.
|
| 36 |
However, this isn't feasible for user-generated functions. Instead, we use a
|
| 37 |
cache to minimize the cost of creating them as much as possible.
|
| 38 |
-
|
| 39 |
-
The _parent_depth is set to 3 to look at an additional frame, since this
|
| 40 |
-
function is in its own scope.
|
| 41 |
"""
|
| 42 |
return TypeAdapter(cls)
|
| 43 |
|
|
|
|
| 35 |
create them once in a global scope and reuse them as often as possible.
|
| 36 |
However, this isn't feasible for user-generated functions. Instead, we use a
|
| 37 |
cache to minimize the cost of creating them as much as possible.
|
|
|
|
|
|
|
|
|
|
| 38 |
"""
|
| 39 |
return TypeAdapter(cls)
|
| 40 |
|