mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-118767: Make bool(NotImplemented) raise TypeError (#118775)
This commit is contained in:
parent
aac6b019fe
commit
3c079a0203
6 changed files with 18 additions and 14 deletions
|
@ -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
|
||||
--------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue