Add macro for type check functions in c-api#7871
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds three C-exported functions to ChangesType-checking C API exports
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| define_py_check!(PyType_Check, types.type_type); | ||
| define_py_check!(exact PyType_CheckExact, types.type_type); |
There was a problem hiding this comment.
| define_py_check!(PyType_Check, types.type_type); | |
| define_py_check!(exact PyType_CheckExact, types.type_type); | |
| define_py_check!(fn PyType_Check, types.type_type); | |
| define_py_check!(exact fn PyType_CheckExact, types.type_type); |
I prefer to contains fn, struct, impl in macro to help searching fn PyType_Check. Otherwise the result will be zero.
Summary by CodeRabbit