From cf0609c33aa7f3066f8293be1561983321806c6d Mon Sep 17 00:00:00 2001 From: hideyukiMORI Date: Wed, 20 May 2026 01:34:07 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Note=20entity=20=E3=81=AB=20slots=3DTrue?= =?UTF-8?q?=20=E3=82=92=E8=BF=BD=E5=8A=A0=EF=BC=88#140=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tag/Comment entity は slots=True を持つが Note entity だけ欠落していた。 CLAUDE.md のルール「dataclass(frozen=True, slots=True)」に準拠させる。 Co-Authored-By: Claude Sonnet 4.6 --- src/example/note/entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example/note/entity.py b/src/example/note/entity.py index a50826e..08f4187 100644 --- a/src/example/note/entity.py +++ b/src/example/note/entity.py @@ -3,7 +3,7 @@ from dataclasses import dataclass -@dataclass(frozen=True) +@dataclass(frozen=True, slots=True) class Note: id: int title: str