-
Notifications
You must be signed in to change notification settings - Fork 437
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
ENH: Miscellaneous cleanup #2522
Conversation
jhlegarreta
commented
Feb 18, 2022
•
edited
Loading
edited
- DOC: Document missing parameters
- ENH: Remove unused import statement
- ENH: Remove unused local variables
- ENH: Remove unused method parameter
- STYLE: Remove redundant parentheses
- STYLE: Simplify chained comparisons
- DOC: Fix spelling mistakes
By no means this intends to be exhaustive: I just visited these files and my editor was prompting me with these things. |
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.
Thanks @jhlegarreta, always good to have some code cleaning PR.
See my comments below. I think the tests are failing because of that. You remove the wrong one.
Document missing parameters and remove documentation of parameters that are no longer present.
Remove unused import statement.
0728c08
to
e119d5d
Compare
Remove unused local variables. Fixes warning: ``` Local variable 'sqrtC' value is not used ``` And similar other warnings.
Remove unused method parameter. Fixes warning: ``` Parameter 'dtype' value is not used ```
Remove redundant parentheses.
e119d5d
to
b29ce1d
Compare
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.
Thanks for cleaning up! I had a couple of specific suggestions
Codecov Report
@@ Coverage Diff @@
## master #2522 +/- ##
==========================================
- Coverage 84.85% 84.85% -0.01%
==========================================
Files 126 126
Lines 17151 17148 -3
Branches 2914 2914
==========================================
- Hits 14554 14551 -3
Misses 1926 1926
Partials 671 671
|
Simplify chained comparisons by splitting them into two statements.
Fix spelling mistakes in docstrings/comments.
b29ce1d
to
ae320ae
Compare
All concerns have been fixed, thank you @arokem for the review, and thanks @jhlegarreta for the code cleaning. merging |