This commit is contained in:
Mudit Jha 2025-04-13 22:10:50 +00:00 committed by GitHub
commit 7bb7ea4c98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -166,7 +166,7 @@ class DayOne(Journal):
def editable_str(self) -> str:
"""Turns the journal into a string of entries that can be edited
manually and later be parsed with eslf.parse_editable_str."""
manually and later be parsed with self.parse_editable_str."""
return "\n".join([f"{str(e)}\n# {e.uuid}\n" for e in self.entries])
def _update_old_entry(self, entry: Entry, new_entry: Entry) -> None:

View file

@ -224,7 +224,8 @@ class Journal:
@property
def tags(self) -> list[Tag]:
"""Returns a set of tuples (count, tag) for all tags present in the journal."""
"""Returns a list of Tag instances enumerating all the tags present in the
journal."""
# Astute reader: should the following line leave you as puzzled as me the first
# time I came across this construction, worry not and embrace the ensuing moment
# of enlightment.