]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:53 +0000 (10:42 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Fri, 13 Sep 2019 17:42:53 +0000 (18:42 +0100)
commit3906920cfecba83d529f8755f5ec2e53e49f9e90
treef227dde9ed02c996a9d8cd32e162814cd035a16a
parent77878cadc58aaca234482dffbb5fe89c74c026fa
bpo-34706: Preserve subclassing in inspect.Signature.from_callable (GH-16108) (GH-16114)

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]