~False et ~True sont dépréciés, ou pas

TL;DR :

$ python3.14
Python 3.14.0 (main, Oct  8 2025, 07:31:52) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> ~False
<python-input-0>:1: DeprecationWarning: Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.
-1

Mais ça pourrait être autorisé à nouveau…

Je ne connaissais même pas. Donc je vias continuer comme ça je pense :smiley: