We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_type_of
1 parent fdf62e0 commit 8e7ac5dCopy full SHA for 8e7ac5d
newsfragments/4981.fixed.md
@@ -0,0 +1 @@
1
+Fix `is_type_of` for native types not using same specialized check as `is_type_of_bound`.
src/types/mod.rs
@@ -152,7 +152,7 @@ macro_rules! pyobject_native_type_info(
152
153
$(
154
#[inline]
155
- fn is_type_of_bound(obj: &$crate::Bound<'_, $crate::PyAny>) -> bool {
+ fn is_type_of(obj: &$crate::Bound<'_, $crate::PyAny>) -> bool {
156
#[allow(unused_unsafe)]
157
unsafe { $checkfunction(obj.as_ptr()) > 0 }
158
}
0 commit comments