"""
Data types for entities that have notes.
"""
from __future__ import annotations
from typing import Any, Iterable, TYPE_CHECKING
from urllib.parse import quote
from typing_extensions import override
from betty.ancestry.note import Note
from betty.model import Entity, GeneratedEntityId, EntityReferenceCollectionSchema
from betty.model.association import OneToMany
if TYPE_CHECKING:
from betty.json.schema import Object
from betty.serde.dump import DumpMapping, Dump
from betty.project import Project
[docs]
class HasNotes(Entity):
"""
An entity that has notes associated with it.
"""
notes = OneToMany["HasNotes", Note](
"betty.ancestry.has_notes:HasNotes",
"notes",
"betty.ancestry.note:Note",
"entity",
)