Compare commits

...

3 commits

Author SHA1 Message Date
Mudit Jha
1e2ef3f1bd
Merge 9bf3d8aceb into 247129c760 2024-11-21 00:26:49 +03:00
Micah Jerome Ellison
9bf3d8aceb
Add line break to appease linter 88-char line length max 2024-03-24 08:34:26 -07:00
Mudit
02bcc662a5 Minor fixes to docstrings of functions 2024-03-12 20:56:11 +05:30
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.