Skip to content

Commit

Permalink
Uses Pydantic Field definition
Browse files Browse the repository at this point in the history
  • Loading branch information
jmts-w24 committed Oct 21, 2024
1 parent 801f710 commit e753923
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions werk24/models/ask.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class W24AskSheetAnonymization(W24AskThumbnail):
only grayscale is supported.
output_format (W24FileFormatThumbnail): Output format in
which to generate the thumbnail.
which to generate the anonymized sheet.
"""

ask_type: W24AskType = W24AskType.SHEET_ANONYMIZATION
Expand All @@ -290,7 +290,11 @@ class W24AskSheetAnonymization(W24AskThumbnail):

fill_color: Tuple[int, int, int] = (255, 255, 255)

output_format: W24FileFormatThumbnail = W24FileFormatThumbnail.PNG
output_format: W24FileFormatThumbnail = Field(
description="Output format in which to generate the anonymized sheet.",
examples=[W24FileFormatThumbnail.PNG, W24FileFormatThumbnail.PDF],
default=W24FileFormatThumbnail.PNG,
)


class W24AskPartFamilyCharacterization(W24Ask):
Expand Down

0 comments on commit e753923

Please sign in to comment.