Takes the most recently undone command from the undo list and redoes it.
Derived from mel command maya.cmds.redo
Example:
import pymel.core as pm
import maya.cmds as cmds
# In this particular example, each line needs to be executed
# separately one after the other. Executing lines separately
# guaranties that commands are properly registered in the undo
# stack.
pm.polyCube()
# Result: [nt.Transform(u'pCube1'), nt.PolyCube(u'polyCube1')] #
pm.undo()
# Undo: pm.polyCube()
#
pm.redo()
# Result: [u'pCube1', u'polyCube1'] #
# Redo: pm.polyCube()
#