[Resolve #1506] Remove unused __eq__ method #1508
Merged
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.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Way back in 2018, the original team were adding the debug command, and in that context set about to improve the output in some debug circumstances during inspection of Sceptre's internal objects.
In response to #570, a custom
__eq__
method was added in df9fc20.Based on what can be seen of the original implementation of the custom
__eq__
, it has not been maintained in a long time, other than changes to it that appeared forced on the current maintainers.A recent change 993ef09 was done to improve the output during cyclical dependency errors. This change introduced a call to
nx.find_cycle
, a function that explicitly searches for a cycle in the graph. This appears to result in code testing for the equality of nodes in the graph and thus calls to the custom__eq__
method.The
__eq__
method however has been technically broken ever sincetemplate_path
was made optional. This then results in__eq__
failing. This fails as the code to announce the deprecation oftemplate_path
is then executed, which fails if the deprecated setting is not actually in use.This PR proposes to simply remove
__eq__
since it is believed that it is no longer in use by anything. It has been more than 2 years sincetemplate_path
was deprecrated and made optional, and the fact that this bug has not surfaced until now is good evidence that the code is not otherwise used or needed.PR Checklist
[Resolve #issue-number]
.poetry run tox
) are passing.poetry run pre-commit run --all-files
).and description in grammatically correct, complete sentences.
Approver/Reviewer Checklist
Other Information
Guide to writing a good commit