diff options
author | Steven Troxler <steven.troxler@gmail.com> | 2023-02-27 21:16:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 21:16:11 (GMT) |
commit | 0f89acf6cc4d4790f7b7a82165d0a6e7e84e4b72 (patch) | |
tree | b411d170426a326dc109e23e3cf0d42a6d770337 /Doc/whatsnew | |
parent | 4624987b296108c2dc1e6e3a24e65d2de7afd451 (diff) | |
download | cpython-0f89acf6cc4d4790f7b7a82165d0a6e7e84e4b72.zip cpython-0f89acf6cc4d4790f7b7a82165d0a6e7e84e4b72.tar.gz cpython-0f89acf6cc4d4790f7b7a82165d0a6e7e84e4b72.tar.bz2 |
gh-101561: Add typing.override decorator (#101564)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.12.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index e551c5b..1a25ec6 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -350,6 +350,14 @@ tempfile The :class:`tempfile.NamedTemporaryFile` function has a new optional parameter *delete_on_close* (Contributed by Evgeny Zorin in :gh:`58451`.) +typing +------ + +* Add :func:`typing.override`, an override decorator telling to static type + checkers to verify that a method overrides some method or attribute of the + same name on a base class, as per :pep:`698`. (Contributed by Steven Troxler in + :gh:`101564`.) + sys --- |