]> granicus.if.org Git - python/commit
bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 13 Sep 2019 17:42:35 +0000 (10:42 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Fri, 13 Sep 2019 17:42:35 +0000 (18:42 +0100)
commitcf25765cf79a5bd19ba90a535a51367d6177f2bc
treecd992b2cde056be71f6e432d16d35ee2a9de8f4c
parent10873831ed95386d4834dcfb49f1c3d02f741eed
bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108) (GH-16113)

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.
(cherry picked from commit 5b9ff7a0dcb16d6f5c3cd4f1f52e0ca6a4bde586)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
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]