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 upFix some warnings from LGTM #2420
Conversation
TravisBuddy
commented
Sep 13, 2020
|
Hey @Hasenn, TravisCI finished with status TravisBuddy Request Identifier: a51aa750-f58e-11ea-b8b5-77c9400cce29 |
Co-authored-by: Christian Clauss <cclauss@me.com>
|
Please run this PR thru psf/black. It knows how to format Python code. |
TravisBuddy
commented
Sep 13, 2020
|
Hey @Hasenn, TravisCI finished with status TravisBuddy Request Identifier: a925b2d0-f58f-11ea-b8b5-77c9400cce29 |
| @@ -226,7 +226,9 @@ def has_cycle(self): | |||
| break | |||
| else: | |||
| return True | |||
| anticipating_nodes.add(stack[len_stack_minus_one]) | |||
| # TODO:The following code is unreachable. | |||
This comment has been minimized.
This comment has been minimized.
cclauss
Sep 13, 2020
Member
If code is unreachable then determine if the lines are useful. If they are then move the return statement below them. If they are not useful then delete them.
This comment has been minimized.
This comment has been minimized.
Hasenn
Sep 13, 2020
Author
Contributor
i tried.. i can't read that part i don't really understand what it's supposed to do
| anticipating_nodes.add( | ||
| stack[len_stack_minus_one]) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
LGTM! |
Hasenn commentedSep 13, 2020
Describe your change:
fixes minor issues : variables assigned to themselves, for - else without any break, redundant redefinitions ...
Checklist:
Fixes: #{$ISSUE_NO}.