Currently Accenti and Casei are a bit tricky, where each one has subclasses for CharacterExpression and PatternExpression
Accenti
AccentiCharacterExpression
AccentiPatternExpression
Casei
CaseiCharacterExpression
CaseiPatternExpression
This allows the proper enforcement of types, but generics could be nice to have. The issue is with Pydantic and runtime typing not completely lining up. A lot of messy attempts have been made to get it working but still trying to find a good solution.
Currently Accenti and Casei are a bit tricky, where each one has subclasses for CharacterExpression and PatternExpression
AccentiAccentiCharacterExpressionAccentiPatternExpressionCaseiCaseiCharacterExpressionCaseiPatternExpressionThis allows the proper enforcement of types, but generics could be nice to have. The issue is with Pydantic and runtime typing not completely lining up. A lot of messy attempts have been made to get it working but still trying to find a good solution.