FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-89828: Do not relay the __class__ attribute in GenericAlias (GH-93754) by miss-islington · Pull Request #93980 · python/cpython · GitHub

/ cpython Public

[3.11] gh-89828: Do not relay the __class__ attribute in GenericAlias (GH-93754) - #93980

Merged
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-f9433ff-3.11
Jun 18, 2022
Merged

[3.11] gh-89828: Do not relay the __class__ attribute in GenericAlias (GH-93754)#93980
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-f9433ff-3.11

Conversation

Copy link
Copy Markdown
Contributor

list[int].class returned type, and isinstance(list[int], type)
returned True. It caused numerous problems in code that checks
isinstance(x, type).
(cherry picked from commit f9433ff)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…ythonGH-93754)

list[int].__class__ returned type, and isinstance(list[int], type)
returned True. It caused numerous problems in code that checks
isinstance(x, type).
(cherry picked from commit f9433ff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

bedevere-bot added type-bug An unexpected behavior, bug, or error awaiting review labels Jun 18, 2022

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅ .

miss-islington merged commit 579e985 into python:3.11 Jun 18, 2022
miss-islington deleted the backport-f9433ff-3.11 branch June 18, 2022 14:41
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL