8000 bpo-41810: Reintroduce `types.EllipsisType`, `.NoneType` & `.NotImplementedType` by BvB93 · Pull Request #22336 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41810: Reintroduce types.EllipsisType, .NoneType & .NotImplementedType #22336

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 13 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
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
Next Next commit
Explicitly mention static type checkers
  • Loading branch information
Bas van Beek committed Sep 21, 2020
commit 33caa6fb32ec98766a9402670176ddde16d47738
4 changes: 2 additions & 2 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ types
-----

Reintroduced the :data:`types.EllipsisType`, :data:`types.NoneType`
and :data:`types.NotImplementedType` classes, aforementioned types
now being useable as annotations.
and :data:`types.NotImplementedType` classes, providing a new set
of types readily interpretable by type checkers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this and the blurb are fine, providing a reason without saying either that this is the only reason or that these should be use everywhere.

(Contributed by Bas van Beek in :issue:`41810`.)

unittest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:data:`types.EllipsisType`, :data:`types.NotImplementedType` and
:data:`types.NoneType` have been reintroduced, aforementioned types
now being useable as annotations.
:data:`types.NoneType` have been reintroduced, providing a new set
of types readily interpretable by static type checkers.
0