79364866

Date: 2025-01-17 13:20:17
Score: 3
Natty:
Report link

how about defining an element Price?

Price = Annotated[int, Field(ge=0)]

class Product(BaseModel):
    prices: list[Price] = Field(
        max_length=3,
        min_length=2,
    )
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): how
  • Low reputation (0.5):
Posted by: Laurent Pinson