Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
36d32e2
1
Parent(s): db72e0c
Remove extra copy
Browse files
src/fastmcp/utilities/json_schema.py
CHANGED
|
@@ -31,8 +31,6 @@ def _walk_and_prune(
|
|
| 31 |
prune_additional_properties: bool = False,
|
| 32 |
) -> dict:
|
| 33 |
"""Walk the schema and optionally prune titles, unused definitions, and additionalProperties: false."""
|
| 34 |
-
# Deep copy to avoid modifying the original
|
| 35 |
-
schema = copy.deepcopy(schema)
|
| 36 |
|
| 37 |
# Will only be used if prune_defs is True
|
| 38 |
used_defs: set[str] = set()
|
|
|
|
| 31 |
prune_additional_properties: bool = False,
|
| 32 |
) -> dict:
|
| 33 |
"""Walk the schema and optionally prune titles, unused definitions, and additionalProperties: false."""
|
|
|
|
|
|
|
| 34 |
|
| 35 |
# Will only be used if prune_defs is True
|
| 36 |
used_defs: set[str] = set()
|