| commit | 579e985e75fd682e314c7b0cce6b1751abe8a7d0 | [log] [tgz] |
|---|---|---|
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Sat Jun 18 07:41:25 2022 -0700 |
| committer | GitHub <noreply@github.com> | Sat Jun 18 07:41:25 2022 -0700 |
| tree | 1e31ad5eb309303a81c0c7ea64d268cb429473fa | |
| parent | 2eff55cd46a55c1eefa8c57b6ab85655dd261fe7 [diff] |
gh-89828: Do not relay the __class__ attribute in GenericAlias (GH-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 f9433fff476aa13af9cb314fcc6962055faa4085) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>