replace_signature
Update function signatures while preserving their bodies and decorators. Change parameters, return types, or function names without modifying implementation code.
Instructions
Replace only the signature of a function, preserving its body and decorators.
Use this when: You're changing parameters, return type, or function name
without modifying the implementation.
Don't use this when: You also want to change the body -> use replace_function.
You're adding/removing one parameter -> use add_parameter/remove_parameter.
Example: target="LRUCache.get" new_signature=" def get(self, key, default=None):"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes | ||
| new_signature | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |