]> granicus.if.org Git - python/commit
bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108)
authorGregory P. Smith <greg@krypto.org>
Fri, 13 Sep 2019 16:13:51 +0000 (17:13 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2019 16:13:51 +0000 (17:13 +0100)
commit5b9ff7a0dcb16d6f5c3cd4f1f52e0ca6a4bde586
tree617e86d74e51ffe2b915e2c89279c04793a838e4
parent2ccb50cf773881255c5669942a093eb68ad042f6
bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108)

https://bugs.python.org/issue34706

Specifically in the case of a class that does not override its
constructor signature inherited from object.

These are Buck Evan @bukzor's changes cherrypicked from GH-9344.
Lib/inspect.py
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2019-09-13-14-54-33.bpo-34706.HWVpOY.rst [new file with mode: 0644]