]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 5 Dec 2021 21:02:47 +0000 (13:02 -0800)
committerGitHub <noreply@github.com>
Sun, 5 Dec 2021 21:02:47 +0000 (13:02 -0800)
commitf1dd5ed1f35a7ed5c3833c822e9965de2400d77e
tree1fb9173c461a963b846622639fa37e550614e80d
parentbeb834292db54fea129dd073cc822179430cee52
bpo-45662: Fix the repr of InitVar with a type alias to the built-in class (GH-29291)

For example, InitVar[list[int]].
(cherry picked from commit 1fd4de5bddbbf2a97cdbac4d298c89e1156bdc6c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2021-10-28-22-58-14.bpo-45662.sJd7Ir.rst [new file with mode: 0644]