diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-08-28 18:09:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 18:09:45 (GMT) |
commit | 81fa08c5ea2cf15254b951034b9d6c7358f96d79 (patch) | |
tree | fc4d745be06f471fda1ccdf71555a4fe19077f23 /Misc | |
parent | cd986e903176d28ed795f65ba14e6fcbf2a65e3d (diff) | |
download | cpython-81fa08c5ea2cf15254b951034b9d6c7358f96d79.zip cpython-81fa08c5ea2cf15254b951034b9d6c7358f96d79.tar.gz cpython-81fa08c5ea2cf15254b951034b9d6c7358f96d79.tar.bz2 |
bpo-44524: Fix cryptic TypeError message when trying to subclass special forms in `typing` (GH-27710)
This was a Python 3.9 regression.
(cherry picked from commit a3a4d20d6798aa2975428d51f3a4f890248810cb)
Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-08-10-16-57-10.bpo-44524.dk9QX4.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-10-16-57-10.bpo-44524.dk9QX4.rst b/Misc/NEWS.d/next/Library/2021-08-10-16-57-10.bpo-44524.dk9QX4.rst new file mode 100644 index 0000000..bc3659f --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-08-10-16-57-10.bpo-44524.dk9QX4.rst @@ -0,0 +1,2 @@ +Make exception message more useful when subclass from typing special form +alias. Patch provided by Yurii Karabas. |