8000 Document PEP 698 and other new typing features in What's New by JelleZijlstra · Pull Request #104957 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Document PEP 698 and other new typing features in What's New #104957

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Doc/whatsnew/3.12.rst
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
JelleZijlstra and AlexWaygood authored May 26, 2023
commit e460c59fb15a20ebc9f77a527dbe23c7db3a2474
3 changes: 2 additions & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ PEP 698: Override Decorator for Static Typing
A new decorator :func:`typing.override` has been added to the :mod:`typing`
module. It indicates to type checkers that the method is intended to override
a method in a superclass. This allows type checkers to catch mistakes where
a method that is intended to override a base class does not in fact do so.
a method that is intended to override something in a base class
does not in fact do so.

Example::

Expand Down
0