#[doc(hidden)]macro_rules! pyobject_native_type_info {
($name:ty, $typeobject:expr, $type_hint_module:expr, $type_hint_name:expr, $module:expr $(, #checkfunction=$checkfunction:path)? $(;$generics:ident)*) => { ... };
}Expand description
Implements the PyTypeInfo trait for a native Python type.
§Safety
$typeobjectmust be a function that produces a valid*mut PyTypeObject$checkfunctionmust be a function that accepts arbitrary*mut PyObjectand returns true / false according to whether the object is an instance of the type from$typeobject