gh-118767: Make bool(NotImplemented) raise TypeError (#118775)

This commit is contained in:
Jelle Zijlstra 2024-05-08 11:12:00 -07:00 committed by GitHub
parent aac6b019fe
commit 3c079a0203
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 14 deletions

View file

@ -174,6 +174,9 @@ for more details.
it currently evaluates as true, it will emit a :exc:`DeprecationWarning`.
It will raise a :exc:`TypeError` in a future version of Python.
.. versionchanged:: 3.14
Evaluating :data:`NotImplemented` in a boolean context now raises a :exc:`TypeError`.
Ellipsis
--------