Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89828: Do not relay the __class__ attribute in GenericAlias #93754

Merged
merged 2 commits into from Jun 18, 2022

Commits on Jun 12, 2022

  1. pythongh-89828: Do not relay the __class__ attribute in GenericAlias

    list[int].__class__ returned type, and isinstance(list[int], type)
    returned True. It caused numerous problems in code that checks
    isinstance(x, type).
    serhiy-storchaka committed Jun 12, 2022
    Copy the full SHA
    2c3e4d1 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2022

  1. Update Misc/NEWS.d/next/Core and Builtins/2022-06-12-19-31-56.gh-issu…

    …e-89828.bq02M7.rst
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    serhiy-storchaka and JelleZijlstra committed Jun 15, 2022
    Copy the full SHA
    4c16a22 View commit details
    Browse the repository at this point in the history