-
-
Notifications
You must be signed in to change notification settings - Fork 46.7k
lowest_common_ancestor.py static type checking #2329
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
lowest_common_ancestor.py static type checking #2329
Conversation
pull from master
Hey @kanthuc, TravisCI finished with status TravisBuddy Request Identifier: 01014280-e104-11ea-a6dd-d374b9ca78b0 |
…king merge from master
Please add doctests to function’s where possible. |
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.
LGTM
We can merge when Travis tests are passing. |
* adding static type checking to basic_binary_tree.py * Add static type checking to functions with None return type * Applying code review comments * Added missing import statement * fix spaciing * "cleaned up depth_of_tree" * Add doctests and then streamline display() and is_full_binary_tree() * added static typing to lazy_segment_tree.py * added missing import statement * modified variable names for left and right elements * added static typing to lowest_common_ancestor.py * fixed formatting * modified files to meet style guidelines, edited docstrings and added some doctests * added and fixed doctests in lazy_segment_tree.py * fixed errors in doctests Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Added static type checking to lowest_common_ancestor.py towards issue #2128. Also includes changes from PR #2303.
Checklist:
Fixes: #{$ISSUE_NO}
.