PyCharm 3.1.0 Web Help

Example

Before After
class SuperClass:
    def super_method(self):
        pass

class SubClassOne(SuperClass):
    def my_method(self):
        pass
class SuperClass:
    def super_method(self):
        pass

    def my_method(self):
        pass

class SubClassOne(SuperClass):
    pass
To pull members up
  1. Select the class to be moved to a superclass.
  2. On the main menu or on the context menu of the selection, choose Refactor | Pull Members Up. The Pull Members Up dialog box appears.
  3. Select the destination object (superclass).
  4. In the Members section, select the members you want to move.
  5. Click OK to pull the selected members to their destination.

See Also

Procedures:

Reference:

Web Resources: