QUndoStackΒΆ

class PyQt5.QtWidgets.QUndoStack

The C++ documentation can be found here.