-
-
Notifications
You must be signed in to change notification settings - Fork 409
tools.time: tweaks & tests #2446
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
Conversation
|
Did all the change as requested, ready for another review. |
dgw
left a comment
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.
Couple ideas… My procrastination on $work stuff is your gain!
Co-authored-by: dgw <[email protected]>
Co-authored-by: James Gerity <[email protected]>
549d9fc to
7b9445f
Compare
|
I squashed the fix commit on the parent's commit, so you shouldn't have issue with changes from master! |
SnoopJ
left a comment
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 have no more remarks for this, LGTM
dgw
left a comment
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'll make CliffsNotes on behavior changes to mention in the changelog by editing the OP.
Evolved description
validate_timezone()raisesValueErroreven if passedNonenow, instead of returningNoneseconds_to_split()functionOriginal description
Tin. Oh, and also I added type annotations and fixed the resulting type errors.
I ensure that the tests all pass on the current version of
sopel.tools.time, then I added type annotations, so there is a guarantee that it works pretty much as it did before... except for a bug I fixed where you could call a function without adband it would raise anAttributeErrorbecauseNoneTypedoesn't have the right method.Checklist
make qa(runsmake qualityandmake test)