-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3.11] gh-103171: Revert undocumented behaviour change for runtime-ch…
…eckable protocols decorated with `@final` (#105445)
- Loading branch information
1 parent
2ffeb0e
commit 18e9fd8
Showing
3 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2023-06-07-14-24-39.gh-issue-103171.b3VJMD.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Revert undocumented behaviour change with runtime-checkable protocols | ||
decorated with :func:`typing.final` in Python 3.11. The behaviour change had | ||
meant that objects would not be considered instances of these protocols at | ||
runtime unless they had a ``__final__`` attribute. Patch by Alex Waygood. |