We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f989e4 commit 8e70394Copy full SHA for 8e70394
vm/src/vm/vm_ops.rs
@@ -470,7 +470,7 @@ impl VirtualMachine {
470
}
471
472
pub fn _invert(&self, a: &PyObject) -> PyResult {
473
- const STR: &'static str = "Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. \
+ const STR: &str = "Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. \
474
This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. \
475
Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.";
476
if a.fast_isinstance(self.ctx.types.bool_type) {
0 commit comments