]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45438: format of inspect.Signature with generic builtins (#29212)
authorMartin Rueckl <enigma@nbubu.de>
Wed, 27 Oct 2021 21:36:41 +0000 (23:36 +0200)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 21:36:41 +0000 (14:36 -0700)
commitd02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899
tree22f2b94683fb57ccb1336efed4084858cdcd8f74
parent10bbd41ba8c88bc102df108a4e0444abc7c5ea43
bpo-45438: format of inspect.Signature with generic builtins (#29212)

Use types.GenericAlias in inspect.formatannotation to correctly add
type arguments of builtin types to the string representation of
Signatures.

Co-authored-by: Martin Rückl <martin.rueckl@codecentric.de>
Lib/inspect.py
Lib/test/test_inspect.py
Misc/NEWS.d/next/Library/2021-10-27-10-05-39.bpo-45438.Xz5lGU.rst [new file with mode: 0644]