Minor fixes to docstrings of functions

This commit is contained in:
Mudit 2024-03-12 20:56:11 +05:30
parent 2af05e4008
commit 02bcc662a5
2 changed files with 2 additions and 2 deletions

View file

@ -166,7 +166,7 @@ class DayOne(Journal):
def editable_str(self) -> str: def editable_str(self) -> str:
"""Turns the journal into a string of entries that can be edited """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]) 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: def _update_old_entry(self, entry: Entry, new_entry: Entry) -> None:

View file

@ -224,7 +224,7 @@ class Journal:
@property @property
def tags(self) -> list[Tag]: 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 # 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 # time I came across this construction, worry not and embrace the ensuing moment
# of enlightment. # of enlightment.