Skip to content

v0.3.2

Latest
Compare
Choose a tag to compare
@J1Loop J1Loop released this 14 Nov 11:20

Full Changelog: v0.3.1...v0.3.2

  • [FT] Add ReplacementsDict and ValidReplacementValue types for smtp replacements by @J1Loop in #50

What's Changed

New Types for Template Replacements Validation:

  • Added ReplacementsDict TypedDict and ValidReplacementValue Union type to quipus/utils/types.py for validating template replacements.

Updates to __init__.py:

  • Updated quipus/__init__.py to include the new ReplacementsDict and ValidReplacementValue in the imports and __all__ list.
  • Updated quipus/utils/__init__.py to export the new types.

Updates to smtp_delivery.py:

  • Imported ReplacementsDict and ValidReplacementValue in quipus/services/smtp_delivery.py.
  • Modified the with_body_path method to use Optional[dict[str, ValidReplacementValue]] for the replacements parameter and added type checks for replacement values.