[Type] ndarray typing 4: Make primitive dtypes Python classes wrapping DataTypeCxx#414
[Type] ndarray typing 4: Make primitive dtypes Python classes wrapping DataTypeCxx#414hughperkins wants to merge 1 commit intohp/typing-t4-3-cook-dtypefrom
Conversation
89f34d8 to
72a9636
Compare
2ec1c5d to
24584de
Compare
|
Opus 4.6 review: PR Review: hp/typing-t4-4-dtype-classesSummaryThis PR refactors primitive dtypes (f32, i32, etc.) from bare Issues Found1.
|
24584de to
cb8f4a0
Compare
72a9636 to
9b5e1a8
Compare
cb8f4a0 to
9899efb
Compare
1adb863 to
71dcd62
Compare
bbc0f0b to
3a1b4f5
Compare
Convert primitive dtypes (f32, i32, etc.) from bare DataTypeCxx module-level variables into Python classes with a PrimitiveMeta metaclass. Each class has a .cxx attribute holding the underlying DataTypeCxx, and the metaclass delegates __eq__, __hash__, __getattr__ for backward compatibility. Update cook_dtype, to_quadrants_type, MAP_TYPE_IDS, and type utility functions to handle the new class-based types. Add PrimitiveBase checks in expr_init and quant.py.
3a1b4f5 to
9bbc16b
Compare
Convert primitive dtypes (f32, i32, etc.) from bare DataTypeCxx module-level variables into Python classes with a PrimitiveMeta metaclass. Each class has a .cxx attribute holding the underlying DataTypeCxx, and the metaclass delegates eq, hash, getattr for backward compatibility.
Update cook_dtype, to_quadrants_type, MAP_TYPE_IDS, and type utility functions to handle the new class-based types. Add PrimitiveBase checks in expr_init and quant.py.
Issue: #
Brief Summary
copilot:summary
Walkthrough
copilot:walkthrough