◐ Shell
clean mode source ↗

Message 183636 - Python tracker

While working on a subclass of inspect.Signature, I realized that inspect.signature is treated as the constructor.  So subclassing isn't so simple.  At first I considered adding an extra parameter to inspect.signature allowing different Signature classes.  Not much later it became clear that all that code should simply be in classmethod.  I've called it Signature.from_callable.  Patch attached.