diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-06-02 15:21:47 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 15:21:47 (GMT) |
| commit | c8de0ec7b96d1c6d27f281c1ab7dc07e03283d22 (patch) | |
| tree | e58c50ce164e9d6075649fc2a4aff7ae3ef12947 /Python/pylifecycle.c | |
| parent | e57a4a19a11672829da71e1963802aa17fddf4f1 (diff) | |
| download | cpython-c8de0ec7b96d1c6d27f281c1ab7dc07e03283d22.zip cpython-c8de0ec7b96d1c6d27f281c1ab7dc07e03283d22.tar.gz cpython-c8de0ec7b96d1c6d27f281c1ab7dc07e03283d22.tar.bz2 | |
[3.12] Improve documentation for typing.get_type_hints (GH-119928) (#119944)
- Explicit list of what it does that is different from
"just return __annotations__"
- Remove reference to PEP 563; adding the future import doesn't
do anything to type aliases, and in general it will never make
get_type_hints() less likely to fail.
- Remove example, as the Annotated docs already have a similar
example, and it's unbalanced to have one example about this
one edge case but not about other behaviors of the function.
(cherry picked from commit aa9fe98e0649f0a151942914ef4e2810ca6126c2)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/pylifecycle.c')
0 files changed, 0 insertions, 0 deletions
