docs: def get(self, name_or_klass):
          """
          Gets a mode by name (or class)
  
          :param name_or_klass: The name or the class of the mode to get
          :type name_or_klass: str or type
          :rtype: pyqode.core.api.Mode
          """
          if not isinstance(name_or_klass, str):
              name_or_klass = name_or_klass.__name__
          return self._modes[name_or_klass]