| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Do not mention `__annotations__` dictionaries, as this is slightly outdated since 3.14. Rewrite the note about possible exceptions for clarity. Also do not mention imported type aliases, as since 3.12 aliases with the `type` statement do not suffer from this limitation anymore.
Yes, would you mind changing that line to reference annotationlib.get_annotations instead? |
Sorry, something went wrong.
|
@copilot resolve the merge conflicts in this pull request |
Sorry, something went wrong.
|
Thanks @Viicos for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
|
GH-148901 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
…_hints()` (GH-143758) (#148901) Do not mention `__annotations__` dictionaries, as this is slightly outdated since 3.14. Rewrite the note about possible exceptions for clarity. Also do not mention imported type aliases, as since 3.12 aliases with the `type` statement do not suffer from this limitation anymore. (cherry picked from commit 8bf99ae) Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
…hints()` (python#143758) Do not mention `__annotations__` dictionaries, as this is slightly outdated since 3.14. Rewrite the note about possible exceptions for clarity. Also do not mention imported type aliases, as since 3.12 aliases with the `type` statement do not suffer from this limitation anymore.
| Back | FazBrowse Home | New Git URL |
I'm wondering if we should also update this section:
cpython/Doc/library/typing.rst
Lines 3336 to 3337 in 66e1399
This gives some sense that accessing __annotations__ is safe, which is no longer the case.
📚 Documentation preview 📚: https://cpython-previews--143758.org.readthedocs.build/