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)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds a macro-generated pair of C-exported functions ChangesType-checking C API exports
Sequence Diagram(s)sequenceDiagram
participant Caller
participant with_vm
participant vm_ctx_types_type_type
participant PyTypeObject
Caller->>with_vm: call PyType_Check(obj) / PyType_CheckExact(obj)
with_vm->>vm_ctx_types_type_type: compare obj.type against ctx.types.type_type
Caller->>with_vm: call PyType_IsSubtype(a, b)
with_vm->>PyTypeObject: call a.is_subtype(b)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
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 |
091172f to
dc6d7eb
Compare
dc6d7eb to
69b9f04
Compare
69b9f04 to
cc1455b
Compare
|
@youknowone This is also ready to be merged! |
Summary by CodeRabbit