Skip to content

fix: Note entity に slots=True を追加(#140)#141

Merged
hideyukiMORI merged 1 commit into
mainfrom
fix/140-note-entity-slots
May 19, 2026
Merged

fix: Note entity に slots=True を追加(#140)#141
hideyukiMORI merged 1 commit into
mainfrom
fix/140-note-entity-slots

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

  • src/example/note/entity.pyNote dataclass に slots=True を追加
  • Tag / Comment entity との一貫性を回復、CLAUDE.md の規約準拠

変更内容

# before
@dataclass(frozen=True)
class Note:

# after
@dataclass(frozen=True, slots=True)
class Note:

Background

2026-05-20 の包括的評価レポートで指摘。13 件の既存 PR (Issue #107#132) は
use_case.py の Input DTO を対象とした Issue #110 で対応済みだが、
note/entity.py 本体は抜け落ちていた。

Test plan

  • uv run pytest — 167 tests passed, 91.77% coverage
  • uv run mypy src/ — no issues
  • uv run ruff check src/ tests/ — no issues
  • uv run ruff format --check src/ tests/ — no issues

Closes #140

🤖 Generated with Claude Code

Tag/Comment entity は slots=True を持つが Note entity だけ欠落していた。
CLAUDE.md のルール「dataclass(frozen=True, slots=True)」に準拠させる。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit 88234f5 into main May 19, 2026
1 check passed
@hideyukiMORI hideyukiMORI deleted the fix/140-note-entity-slots branch May 21, 2026 15:09
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 entity に slots=True が欠けている(Tag/Comment entity との不一貫)

1 participant