bpo-38908: Fix issue when non runtime_protocol does not raise TypeError#26067
bpo-38908: Fix issue when non runtime_protocol does not raise TypeError#26067gvanrossum merged 4 commits intopython:mainfrom
Conversation
Fidget-Spinner
left a comment
There was a problem hiding this comment.
Yurii, thanks for sending a PR to make sure there are no regressions for this long-standing issue!
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
|
@Fidget-Spinner It is not regression, I made a mistake when said that this issue was not present at 3.11 version. This issue still present and this PR will fix it. |
Oh interesting! class P(Protocol):
x : intdoesn't! |
Fidget-Spinner
left a comment
There was a problem hiding this comment.
LGTM. Once again, thank you for fixing this!
Misc/NEWS.d/next/Library/2021-05-12-16-43-21.bpo-38908.nM2_rO.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
gvanrossum
left a comment
There was a problem hiding this comment.
Thanks! Does this need backporting?
|
@gvanrossum: Please replace |
|
Thanks @uriyyo for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9. |
…ror (pythonGH-26067) (cherry picked from commit c40486a) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
|
GH-26073 is a backport of this pull request to the 3.10 branch. |
|
Sorry, @uriyyo and @gvanrossum, I could not cleanly backport this to |
I'm on it. It's clashing because the |
|
GH-26075 is a backport of this pull request to the 3.9 branch. |
… raise TypeError (pythonGH-26067) (pythonGH-26075)" This reverts commit 88136bb.
Backport of CPython PR 26067 (python/cpython#26067)
https://bugs.python.org/issue38908