Correct TodoItem docstrings (#142066)

This commit is contained in:
Erik Montnemery 2025-04-02 13:49:12 +02:00 committed by GitHub
parent 36857b4b20
commit 795e01512a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,18 +219,10 @@ class TodoItem:
"""A status or confirmation of the To-do item.""" """A status or confirmation of the To-do item."""
due: datetime.date | datetime.datetime | None = None due: datetime.date | datetime.datetime | None = None
"""The date and time that a to-do is expected to be completed. """The date and time that a to-do is expected to be completed."""
This field may be a date or datetime depending whether the entity feature
DUE_DATE or DUE_DATETIME are set.
"""
description: str | None = None description: str | None = None
"""A more complete description of than that provided by the summary. """A more complete description than that provided by the summary."""
This field may be set when TodoListEntityFeature.DESCRIPTION is supported by
the entity.
"""
CACHED_PROPERTIES_WITH_ATTR_ = { CACHED_PROPERTIES_WITH_ATTR_ = {