mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
* Implement TypeAliasType, type annotations, and genericalias fixes - TypeAliasType: lazy value evaluation via closures, __module__, __parameters__, __iter__, evaluate_value, check_type_params, IMMUTABLETYPE flag, Hashable/AsMapping/Iterable traits - TypeAliasType constructor: positional-or-keyword arg validation, duplicate/unexpected kwarg rejection - type.__annotations__ setter: distinguish None assignment from deletion - Annotation scope: name as __annotate__, format as positional-only, __conditional_annotations__ uses Cell for both load and store - Compiler: proper TypeParams/TypeAlias scope with closures, find_ann covers match/try-except handlers - symboltable: deduplicate TypeAlias value scope code - GenericAlias repr: handle list args, avoid deadlock in repr_arg by cloning items before calling repr - AST types: remove IMMUTABLETYPE (heap types, mutable) - pymodule macro: preserve existing __module__ getset descriptors * Update typing from v3.14.3 * Implement TypeAliasType, type annotations, and genericalias fixes - TypeAliasType: lazy value evaluation via closures, __module__, __parameters__, __iter__, evaluate_value, check_type_params, IMMUTABLETYPE flag, Hashable/AsMapping/Iterable traits - TypeAliasType constructor: positional-or-keyword arg validation, duplicate/unexpected kwarg rejection - type.__annotations__ setter: distinguish None assignment from deletion - Annotation scope: name as __annotate__, format as positional-only, __conditional_annotations__ uses Cell for both load and store - Compiler: proper TypeParams/TypeAlias scope with closures, find_ann covers match/try-except handlers - symboltable: deduplicate TypeAlias value scope code - GenericAlias: implement gaiterobject (generic_alias_iterator), starred equality comparison, starred pickle via iterator reduce, split attr_exceptions/attr_blocked for correct __dir__, make_parameters/subs_parameters handle list/tuple args recursively, repr_arg indexed access for mutation safety - AST types: remove IMMUTABLETYPE (heap types, mutable) - pymodule macro: preserve existing __module__ getset descriptors --------- Co-authored-by: CPython Developers <>