docs: def _get_qkeysequence(shortcut):
      """Return a QKeySequence or list of QKeySequence from a shortcut string."""
      if shortcut is None:
          return []
      if isinstance(shortcut, (tuple, list)):
          return [_get_qkeysequence(s) for s in shortcut]
      assert isinstance(shortcut, string_types)
      if hasattr(QKeySequence, shortcut):
          return QKeySequence(getattr(QKeySequence, shortcut))
      sequence = QKeySequence.fromString(shortcut)
      assert not sequence.isEmpty()
      return sequence