def _uabstractmethod(f): @_wraps(f) def func(*args): raise NotImplementedError() return _abstractmethod(func)