code: def override(base=ABSENT):
      
      arg = base  # ``base`` is just for clean, user-facing argument name
  
      # direct application of the modifier through ``@override``
      if inspect.isfunction(arg) or isinstance(arg, NonInstanceMethod):
          _OverrideDecorator.maybe_signal_classmethod(arg)
          decorator = _OverrideDecorator(None)
          return decorator(arg)
  
      # indirect (but simple) application of the modifier through ``@override()``
      if arg is ABSENT:
          return _OverrideDecorator(None)
  
      # full-blown application, with base class specified
      if is_class(arg) or is_string(arg):
          return _OverrideDecorator(arg)
  
      raise TypeError("explicit base class for @override "
                      "must be either a string or a class object")
docs: Mark a method as overriding a corresponding method from superclass.
  
      :param base:
  
          Optional base class from which this method is being overridden.
          If provided, it can be a class itself, or its (qualified) name.
  
      .. note::
  
          When overriding a :class:`classmethod`, remember to place ``@override``
          above the ``@classmethod`` decorator::
  
              class Foo(Bar):
                  @override
                  @classmethod
                  def florb(cls):
                      pass