-
-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add type hints #1614
Add type hints #1614
Conversation
jrnl/DayOneJournal.py
Outdated
@@ -210,7 +210,7 @@ def parse_editable_str(self, edited): | |||
entries_from_editor = self._parse(edited) | |||
|
|||
for entry in entries_from_editor: | |||
entry = self._get_and_remove_uuid_from_entry(entry) | |||
self._get_and_remove_uuid_from_entry(entry) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is basically a no-op, but can we avoid anything other than type hint changes in this PR (to keep it separate from everything else)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Just for reference, there were two other changes not related to type hints:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is such a great start towards static type checking. Thank you!
Add type hints to functions and methods
Uses Python 3.10 syntax
Waiting for #1611 and #1602 to be merged.
cc: #1608
Checklist
for the same issue.