Visitar URL original
gh-89828: Do not relay the __class__ attribute in GenericAlias by serhiy-storchaka · Pull Request #93754 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
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>
  • Loading branch information
serhiy-storchaka and JelleZijlstra authored Jun 15, 2022
commit 4c16a22488739b454cf16a471fb7fb7c8c643d90
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
:class:`types.GenericAlias` no longer relay the ``__class__`` attribute.
:class:`types.GenericAlias` no longer relays the ``__class__`` attribute.
For example, ``isinstance(list[int], type)`` no longer returns ``True``.