]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44353: Correct docstring for `NewType` (GH-29785)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 26 Nov 2021 14:58:13 +0000 (06:58 -0800)
committerGitHub <noreply@github.com>
Fri, 26 Nov 2021 14:58:13 +0000 (06:58 -0800)
commit3f024e27c29a57dd4f805aa2431d713ed0fe57b2
treef4c9e8c3b1e4c595df35583ea28d04d11beb1950
parent7842aed7a7938df20b652177458407683e7f1a0b
bpo-44353: Correct docstring for `NewType` (GH-29785)

The docstring for `typing.NewType` is no longer strictly accurate, now that `NewType` is a class, rather than a function
(cherry picked from commit 93c65df83cef71a4bc77d71afecdec8744c4f73a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/typing.py