Skip to content

Commit

Permalink
fix: avoid unnecessarily requiring a schema update
Browse files Browse the repository at this point in the history
  • Loading branch information
joanise committed Sep 12, 2024
1 parent 3eee1a6 commit bbcd1e8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions g2p/mappings/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ class Rule(BaseModel):
match_pattern: Optional[Pattern] = Field(
None,
exclude=True,
description="""An automatically generated match_pattern based on the rule_input, context_before and context_after""",
# Don't include this in the docs because it's generated, and would require a schema update
# description="""An automatically generated match_pattern based on the rule_input, context_before and context_after""",
)

intermediate_form: Optional[str] = Field(
None,
exclude=True,
description="""An intermediate form, automatically generated only when prevent_feeding is True""",
# Don't include this in the docs because it's generated, and would require a schema update
# description="""An intermediate form, automatically generated only when prevent_feeding is True""",
)
comment: Optional[str] = None
"""An optional comment about the rule."""
Expand Down

0 comments on commit bbcd1e8

Please sign in to comment.