David Ellis
95c257e2e6
gh-138764: annotationlib: Make call_annotate_function fallback to using VALUE annotations if both the requested format and VALUE_WITH_FAKE_GLOBALS are not implemented ( #138803 )
2025-10-21 15:57:43 +00:00
Jelle Zijlstra
9158bcf86b
annotationlib: add note on security to docs ( #138508 )
2025-09-05 08:26:58 -07:00
Brian Schubert
fc0305a2d8
docs: add module-level versionadded for annotationlib ( #138511 )
2025-09-04 13:45:21 -07:00
Victorien
c13cc4af79
Fix code example in annotationlib documentation ( #136972 )
2025-07-22 13:48:02 +00:00
Jelle Zijlstra
b51b08a0a5
annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals ( #134661 )
2025-05-25 17:23:28 +00:00
Jelle Zijlstra
0eb448cae5
gh-119180: annotationlib: Fix values of Format members in docs ( #133841 )
...
gh-119180: Fix values of Format members in docs
2025-05-11 08:43:24 -07:00
Jelle Zijlstra
3396df56d0
gh-119180: More documentation for PEP 649/749 ( #133552 )
...
The SC asked that the Appendix in PEP-749 be added to the docs.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-05-11 08:43:17 -07:00
Jelle Zijlstra
af5799f305
gh-125618: Make FORWARDREF format succeed more often ( #132818 )
...
Fixes #125618 .
2025-05-04 15:21:56 -07:00
Jelle Zijlstra
7cb86c5def
gh-132426: Add get_annotate_from_class_namespace replacing get_annotate_function ( #132490 )
...
As noted on the issue, making get_annotate_function() support both types and
mappings is problematic because one object may be both. So let's add a new one
that works with any mapping.
This leaves get_annotate_function() not very useful, so remove it.
2025-05-04 07:26:42 -07:00
Jelle Zijlstra
11f6603845
gh-132491: Rename annotationlib.value_to_string to type_repr ( #132492 )
2025-04-15 20:10:53 +00:00
Jelle Zijlstra
4d3ad0467e
gh-132064: Make annotationlib use __annotate__ if only it is present ( #132195 )
2025-04-13 16:32:44 -07:00
Jelle Zijlstra
07b8d3117f
gh-132261: Store annotations at hidden internal keys in the class dict ( #132345 )
2025-04-10 21:13:26 -07:00
Jelle Zijlstra
ac14d4a23f
gh-129463, gh-128593: Simplify ForwardRef ( #129465 )
2025-04-05 04:36:34 +00:00
Jelle Zijlstra
5518c2ae09
gh-128661: Remove DeprecationWarning in evaluate_forward_ref ( #128930 )
...
It doesn't make sense to use a deprecation for evaluate_forward_ref,
as it is a new function in Python 3.14 and doesn't have compatibility
guarantees.
I considered making it throw an error if type_params it not passed and
there is no owner. However, I think this is too unfriendly for users. The
case where this param is really needed is fairly esoteric and I don't think
this case is worth the pain of forcing users to write "type_params=()".
2025-04-03 09:52:17 -07:00
Jelle Zijlstra
dcf629213b
gh-119180: Add VALUE_WITH_FAKE_GLOBALS format to annotationlib ( #124415 )
2024-11-26 15:40:13 +00:00
Jelle Zijlstra
2c10832887
gh-119180: Rename SOURCE format to STRING ( #124620 )
2024-09-26 13:49:48 -07:00
Jelle Zijlstra
4e829c0e6f
gh-124412: Add helpers for converting annotations to source format ( #124551 )
2024-09-26 00:01:09 +00:00
Hugo van Kemenade
eb169f4027
Update Sphinx Lint and fix unnecessary parentheses in :func:s ( #123960 )
2024-09-11 21:05:15 +03:00
Jelle Zijlstra
5436d8b9c3
gh-119180: Documentation for PEP 649 and 749 ( #122235 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
2024-09-11 07:49:59 -07:00