Skip to content

Explore Generics for Accenti / Casei #65

Description

@eseglem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions