fix: address PR #574 fourth review round

- Use lowercase generics (list[...]) in new deck response models
- Add clarifying comment on AddressBook.uri slug semantics
- Fall back calendar_display_name to calendar_name when absent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Chris Coutinho
2026-02-21 09:36:14 +01:00
parent f51b27ba19
commit 18e5baf2a5
4 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -264,14 +264,14 @@ class CreateLabelResponse(BaseResponse):
class ListCardsResponse(BaseResponse):
"""Response model for listing deck cards."""
cards: List[DeckCard] = Field(description="List of deck cards")
cards: list[DeckCard] = Field(description="List of deck cards")
total: int = Field(description="Total number of cards")
class ListLabelsResponse(BaseResponse):
"""Response model for listing deck labels."""
labels: List[DeckLabel] = Field(description="List of deck labels")
labels: list[DeckLabel] = Field(description="List of deck labels")
total: int = Field(description="Total number of labels")