Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdded static type checking to Python/linear_algebra/src/power_iterati… #2336
Conversation
…on.py
TravisBuddy
commented
Aug 18, 2020
|
Hey @karan-dhir, TravisCI finished with status TravisBuddy Request Identifier: ba646be0-e153-11ea-81c3-ef1e647c3fbd |
TravisBuddy
commented
Aug 18, 2020
|
Hey @karan-dhir, TravisCI finished with status TravisBuddy Request Identifier: e2cbf020-e154-11ea-81c3-ef1e647c3fbd |
| convergence: bool = False | ||
| lamda_previous: int = 0 | ||
| iterations: int = 0 | ||
| error: float = 1e12 |
Comment on lines
+47
to
+50
This comment has been minimized.
This comment has been minimized.
cclauss
Aug 26, 2020
Member
Type hints are not really required on local variables that are set to literals. They create a lot of cognitive clutter.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
karan-dhir commentedAug 18, 2020
…on.py
Describe your change:
Added static type checking to power_iteration.py towards issue #2128.
Checklist:
Fixes: #{$ISSUE_NO}.