Fixed inconsistent signature on derived classes for :func:`inspect.signature`