In the link https://docs.python.org/3.11/library/stdtypes.html#bitwise-operations-on-integer-types
In the table, in the line ~x:
I suggest to change "the bits of x inverted"
by "Add the bit one to bits of x, and invert the most significant bit (negative indicator)"
Add note (5) to ~x line
Note 5:
if "x" is an integer number then "~x" is equivalent to "(x + 1) * -1" and "~(~x)" is equivalent to "x"