We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4732b60 commit 81008e1Copy full SHA for 81008e1
src/types/any.rs
@@ -1373,7 +1373,7 @@ impl<'py> PyAnyMethods<'py> for Bound<'py, PyAny> {
1373
}
1374
1375
fn is_ellipsis(&self) -> bool {
1376
- unsafe { ffi::Py_Ellipsis() == self.as_ptr() }
+ unsafe { ptr::eq(ffi::Py_Ellipsis(), self.as_ptr()) }
1377
1378
1379
fn is_empty(&self) -> PyResult<bool> {
0 commit comments