docs: def inherit_type(self, type_cls: Type[TInherit]) \
              -> Union[TInherit, 'Publisher']:
          """ enables the usage of method and attribute overloading for this
          publisher.
          """
          self._inherited_type = type_cls
          return self