Skip to content

Commit 6e8930e

Browse files
committed
ok
1 parent e31a03c commit 6e8930e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ unsafe fn is_subtype(
7575
subtype: *mut pyo3::ffi::PyTypeObject,
7676
base: *mut pyo3::ffi::PyTypeObject,
7777
) -> bool {
78-
// If they're the same type, it's trivially a subtype
79-
if subtype == base {
80-
return true;
81-
}
82-
8378
// Walk up the inheritance chain via tp_base, max 3 jumps
8479
let mut current = subtype;
8580
for _ in 0..3 {

0 commit comments

Comments
 (0)