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 e31a03c commit 6e8930eCopy full SHA for 6e8930e
src/lib.rs
@@ -75,11 +75,6 @@ unsafe fn is_subtype(
75
subtype: *mut pyo3::ffi::PyTypeObject,
76
base: *mut pyo3::ffi::PyTypeObject,
77
) -> bool {
78
- // If they're the same type, it's trivially a subtype
79
- if subtype == base {
80
- return true;
81
- }
82
-
83
// Walk up the inheritance chain via tp_base, max 3 jumps
84
let mut current = subtype;
85
for _ in 0..3 {
0 commit comments