diff options
author | Randolf Scholz <randolf.scholz@gmail.com> | 2023-11-24 09:46:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-24 09:46:08 (GMT) |
commit | e9d1360c9a1072aa23950b321491dc542c3a19b8 (patch) | |
tree | d1475279265198f6cc44e4e53fb6be2b0e9a1a1b /Misc | |
parent | d9fc15222e96942e30ea8b0561dec5c82ecb4663 (diff) | |
download | cpython-e9d1360c9a1072aa23950b321491dc542c3a19b8.zip cpython-e9d1360c9a1072aa23950b321491dc542c3a19b8.tar.gz cpython-e9d1360c9a1072aa23950b321491dc542c3a19b8.tar.bz2 |
gh-112345: `typing.Protocol`: Let failed subclasscheck show non-method members (#112344)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2023-11-23-17-25-27.gh-issue-112345.FFApHx.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2023-11-23-17-25-27.gh-issue-112345.FFApHx.rst b/Misc/NEWS.d/next/Library/2023-11-23-17-25-27.gh-issue-112345.FFApHx.rst new file mode 100644 index 0000000..b2b9894 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-11-23-17-25-27.gh-issue-112345.FFApHx.rst @@ -0,0 +1,3 @@ +Improve error message when trying to call :func:`issubclass` against a +:class:`typing.Protocol` that has non-method members. +Patch by Randolf Scholz. |