Skip to content
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

Small cleanup #496

Merged
merged 2 commits into from
May 24, 2022
Merged

Small cleanup #496

merged 2 commits into from
May 24, 2022

Conversation

mharbison72
Copy link
Contributor

What does this do?

These are small cleanups for lint type things flagged by PyCharm. I didn't bother with updating the changelog because AFAICT, it won't have user visible changes, but still is more correct.

Why is it a good idea?

Fewer lint type things get flagged in the IDE

Flagged by PyCharm.  It looks like this snuck in with c665f21.
This appears to be an obvious typo (after PyCharm flagged `row_panel` as
unused), but it looks like this is only used by `auto_panel_ids()`.  I wasn't
able to generate a difference in output before and after this change when adding
2 `SingleStat` panels to a `RowPanel`, and in turn adding that to the dashboard.
The changed code definitely runs in this case, so IDK what is ultimately making
the changes to the nested panels prior to this.
Copy link
Collaborator

@JamesGibo JamesGibo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted, thanks for the contribution

@JamesGibo JamesGibo merged commit 2d11201 into weaveworks:main May 24, 2022
@mharbison72 mharbison72 deleted the small-cleanup branch May 24, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants