PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Change signature

Last modified: 11 January 2023

Shortcut for the action: Ctrl+F6

General refactoring settings: Settings | Editor | General

In-place refactoring is available

The Change Signature refactoring combines several different modifications that can be applied to a function signature. You can use this refactoring to:

  • change the function name

  • add, remove, and reorder parameters

  • assign default values to the parameters

When changing a function signature, PyCharm searches for all usages of the function and updates all the calls, implementations, and override replacements of the function that can be safely modified to reflect the change.