Skip to content

fix: note / tag の Input・Output dataclass に slots=True を追加 (#110)#117

Merged
hideyukiMORI merged 1 commit into
mainfrom
fix/110-slots-true-input-dataclasses
May 19, 2026
Merged

fix: note / tag の Input・Output dataclass に slots=True を追加 (#110)#117
hideyukiMORI merged 1 commit into
mainfrom
fix/110-slots-true-input-dataclasses

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

  • CLAUDE.md 規約「dataclass(frozen=True, slots=True) で immutable value object」に合わせて修正
  • src/example/note/use_case.py: ListNotesInput/Output, CreateNoteInput, UpdateNoteInput, DeleteNoteInputslots=True を追加
  • src/example/tag/use_case.py: 同様の Input/Output dataclass に slots=True を追加
  • src/example/comment/use_case.py はすでに準拠済みのため変更なし

Closes #110

Test plan

  • uv run pytest が全パスすること

🤖 Generated with Claude Code

CLAUDE.md の規約「dataclass(frozen=True, slots=True)」に合わせて
note/use_case.py と tag/use_case.py の全 dataclass を修正。
comment/use_case.py はすでに slots=True を使用しており変更なし。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit 167f5f2 into main May 19, 2026
1 check passed
@hideyukiMORI hideyukiMORI deleted the fix/110-slots-true-input-dataclasses branch May 21, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: note/tag の Input dataclass に slots=True が欠けている

1 participant