4 Commits

Author SHA1 Message Date
Jeong, YunWon
00cdb307e3 Fix AST field defaults and compile() type check
- Extract empty_arguments_object helper from expression.rs
- Fix LIST_FIELDS ambiguity: "args" and "body" have different
  ASDL types per node (e.g. Lambda.args is `arguments`, not
  `expr*`; Lambda.body is `expr`, not `stmt*`)
- Replace class name string comparison in compile() with
  fast_isinstance to accept AST subclasses
2026-02-03 14:58:43 +09:00
Shahar Naveh
51701ab2a4 Update class related tests from 3.14.2 (#6900)
* Update `test_class` from 3.14.2

* Update test_genericclass

* Update test_subclassinit

* Add test_metaclass

* Patch `test_class`

* Patch test_subclassinit

* Patch `test_metaclass`

----

Co-authored-by: CPython Developers <>
2026-01-30 22:38:49 +09:00
Andrey Maltsev
034f427638 Update test_genericclass.py from Cpython v3.11.2 2023-04-06 00:37:04 +09:00
Noa
5cfdb3361e Add test.test_genericclass from CPython 3.8 2021-08-21 16:33:31 -05:00