Skip to content

Commit e5ac9ab

Browse files
committed
update docs
1 parent 7d316c7 commit e5ac9ab

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33
- Drop support for Python 3.8 (including PyPy-3.8). Patch by [Victorien Plot](https://github.com/Viicos).
44
- Do not attempt to re-export names that have been removed from `typing`,
55
anticipating the removal of `typing.no_type_check_decorator` in Python 3.15.
6+
Patch by Jelle Zijlstra.
7+
- Update `typing_extensions.Format` and `typing_extensions.evaluate_forward_ref` to align
8+
with changes in Python 3.14. Patch by Jelle Zijlstra.
9+
- Fix tests for Python 3.14. Patch by Jelle Zijlstra.
610

711
New features:
812

913
- Add support for inline typed dictionaries ([PEP 764](https://peps.python.org/pep-0764/)).
1014
Patch by [Victorien Plot](https://github.com/Viicos).
1115
- Add `typing_extensions.Reader` and `typing_extensions.Writer`. Patch by
1216
Sebastian Rittau.
13-
- Fix tests for Python 3.14. Patch by Jelle Zijlstra.
1417

1518
# Release 4.13.2 (April 10, 2025)
1619

doc/index.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,9 +952,19 @@ Enums
952952
for the annotations. This format is identical to the return value for
953953
the function under earlier versions of Python.
954954

955+
.. attribute:: VALUE_WITH_FAKE_GLOBALS
956+
957+
Equal to 2. Special value used to signal that an annotate function is being
958+
evaluated in a special environment with fake globals. When passed this
959+
value, annotate functions should either return the same value as for
960+
the :attr:`Format.VALUE` format, or raise :exc:`NotImplementedError`
961+
to signal that they do not support execution in this environment.
962+
This format is only used internally and should not be passed to
963+
the functions in this module.
964+
955965
.. attribute:: FORWARDREF
956966

957-
Equal to 2. When :pep:`649` is implemented, this format will attempt to return the
967+
Equal to 3. When :pep:`649` is implemented, this format will attempt to return the
958968
conventional Python values for the annotations. However, if it encounters
959969
an undefined name, it dynamically creates a proxy object (a ForwardRef)
960970
that substitutes for that value in the expression.
@@ -964,7 +974,7 @@ Enums
964974

965975
.. attribute:: STRING
966976

967-
Equal to 3. When :pep:`649` is implemented, this format will produce an annotation
977+
Equal to 4. When :pep:`649` is implemented, this format will produce an annotation
968978
dictionary where the values have been replaced by strings containing
969979
an approximation of the original source code for the annotation expressions.
970980

0 commit comments

Comments
 (0)