gh-122982: Extend the deprecation period for bool inversion by two years (#123306)

This commit is contained in:
Kirill Podoprigora 2024-08-25 22:24:44 +03:00 committed by GitHub
parent 625d0705b9
commit 249b083ed8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 5 deletions

View file

@ -868,7 +868,7 @@ over ``&``, ``|`` and ``^``.
.. deprecated:: 3.12
The use of the bitwise inversion operator ``~`` is deprecated and will
raise an error in Python 3.14.
raise an error in Python 3.16.
:class:`bool` is a subclass of :class:`int` (see :ref:`typesnumeric`). In
many numeric contexts, ``False`` and ``True`` behave like the integers 0 and 1, respectively.