Change signature

Last modified: 21 July 2022

Shortcut: Ctrl+F6

Refactoring settings: Settings/Preferences | 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.