25 Commits

Author SHA1 Message Date
Shahar Naveh
1da29ff003 Update typing.py to 3.14.5 (#7862) 2026-05-12 20:54:36 +09:00
Jeong, YunWon
6bfdfb1bea Upgrade typing from 3.14.2 and more impl (#7057)
* 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 <>
2026-02-11 09:39:04 +09:00
CPython Developers
a7a823daaa Update typing from v3.14.2 2026-01-20 10:59:47 +09:00
Jeong, YunWon
346481d95e partially patch Lib/typing to 3.14 2026-01-17 19:21:11 +09:00
Jeong, YunWon
566b6f438b PEP 649 annotation phase 4 2026-01-17 19:21:11 +09:00
Jeong YunWon
c0b9694cda Patch typing.py to let _py_abc fallback 2025-07-01 00:10:15 +09:00
Jeong YunWon
d5946d496d Update typing.py from CPython 3.13.5 2025-07-01 00:10:15 +09:00
Ashwin Naren
d46bcd9291 typing upgrade to 3.13.2 (#5590) 2025-04-27 15:26:37 +09:00
Jeong YunWon
7f94c10be7 patch typing not to reqiure contextlib
This will be correctly fixed in future CPython
2025-03-27 01:20:23 +09:00
Daeun Lee
48019563ad Implemente type __qualname__ setter 2022-08-11 07:21:09 +09:00
Lee Dogeon
4ee32e6b66 Update typing module to 3.10.5 2022-07-14 00:31:40 +09:00
Moreal
a2c318a8d8 Merge remote-tracking branch 'upstream/main' into update-types-310 2022-02-06 14:48:41 +09:00
Moreal
49a4bb651b Correct typing.re initialization 2022-01-31 21:44:14 +09:00
Moreal
beae3d8d16 Merge branch 'main' into update-types-310 2022-01-29 23:51:40 +09:00
Moreal
2733202076 Correct typing.io initialization 2022-01-28 23:07:19 +09:00
Moreal
fad636c694 Update typing module to CPython 3.10.0 2021-12-06 03:05:33 +09:00
Padraic Fanning
80a0effd22 Reenable SupportsAbs and SupportsRound 2021-08-27 21:41:50 -04:00
Jeong YunWon
629fadf920 Fix pip with new typing 2021-08-21 22:14:14 +09:00
Padraic Fanning
650b60cc7e Remove namespace conflicts with io and re 2021-08-18 20:08:19 -04:00
Padraic Fanning
0892e54a63 Comment out sections of typing.py that don't work
They will be fixed later.
2021-08-18 20:08:18 -04:00
Padraic Fanning
79779f87a5 Add '_py_abc' to the frame stack
This restores an alteration made by @coolreader18 a while back.
2021-08-18 20:08:18 -04:00
Padraic Fanning
fab274a9e0 Update typing to CPython 3.8 2021-08-18 20:08:17 -04:00
Noah
b79e2cba40 Small changes for typing/abc 2020-10-07 19:29:41 -05:00
Noah
3dabd1f2e7 Modify typing.py slightly for RustPython 2020-02-16 16:02:43 -06:00
Noah
e1bc0b9a81 Add typing.py from CPython 3.6 2020-02-16 16:02:43 -06:00