Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-105280: Ensure
isinstance([], collections.abc.Mapping)
always ev…
…aluates to `False` (#105281)
- Loading branch information
1 parent
058b960
commit 08756db
Showing
3 changed files
with
38 additions
and
8 deletions.
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-04-12-16-47.gh-issue-105280.srRbCe.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 @@ | ||
Fix bug where ``isinstance([], collections.abc.Mapping)`` could evaluate to | ||
``True`` if garbage collection happened at the wrong time. The bug was | ||
caused by changes to the implementation of :class:`typing.Protocol` in | ||
Python 3.12. |