Skip to content

fix: Note entity に slots=True が欠けている(Tag/Comment entity との不一貫) #140

@hideyukiMORI

Description

@hideyukiMORI

概要

CLAUDE.md のルール:

dataclass(frozen=True, slots=True) で immutable value object(slots=True でメモリ効率化)

現在の状態:

entity frozen slots
Note
Tag
Comment

src/example/note/entity.py:

@dataclass(frozen=True)   # slots=True が欠落
class Note:
    id: int
    title: str
    body: str

影響

対応

src/example/note/entity.py@dataclass(frozen=True, slots=True) に変更する。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions