forked from genewildish/Mainline
Fixes and improvements: 1. Corrected Stage Type Declarations - DataSourceStage: NONE inlet, SOURCE_ITEMS outlet (was incorrectly set to TEXT_BUFFER) - CameraStage: TEXT_BUFFER inlet/outlet (post-render transformation, was SOURCE_ITEMS) - All other stages correctly declare their inlet/outlet types - ImageToTextStage: Removed unused ImageItem import 2. Test Suite Organization - Moved TestInletOutletTypeValidation class to proper location - Added pytest and DataType/StageError imports to test file header - Removed duplicate imports - All 5 type validation tests passing 3. Type Validation Coverage - Type mismatch detection raises StageError at build time - Compatible types pass validation - DataType.ANY accepts everything - Multiple inlet types supported - Display stage restrictions enforced All data flows now properly validated: - Source (SOURCE_ITEMS) → Render (TEXT_BUFFER) → Effects/Camera (TEXT_BUFFER) → Display Tests: 507 tests passing