Skip to content

Begins type hinting the undo module

Hello dear Pythonistas. The following is an attempt to type hint the undo module. Thanks a lot for your advices and suggestions.

  • add Op type as a list of all operations
  • type hint SelectionMgr class
  • should we make NodeOperation class truly abstract?
  • type hint NodeOperation class
  • add undo method inside NodeOperation class to make Op type more consistent
  • update get_variable signature:
    • return something that can taken (as parameter) by NodeOperation init

Merge request reports

Loading