Skip to content

Remove unnecessary return statements in package#594

Merged
rahulporuri merged 2 commits into
masterfrom
cln/dummy-returns-in-pkg
Apr 2, 2021
Merged

Remove unnecessary return statements in package#594
rahulporuri merged 2 commits into
masterfrom
cln/dummy-returns-in-pkg

Conversation

@rahulporuri
Copy link
Copy Markdown
Contributor

This PR removes unnecessary return statements from the chaco package.

Comment thread chaco/multi_line_plot.py
Comment on lines 439 to -461
def _alpha_changed(self):
self.invalidate_draw()
self.request_redraw()
return

def _color_changed(self):
self.invalidate_draw()
self.request_redraw()
return

def _line_style_changed(self):
self.invalidate_draw()
self.request_redraw()
return

def _line_width_changed(self):
self.invalidate_draw()
self.request_redraw()
return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

unrelated to this PR but looks like these could all use the new requires_redraw metadata

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

can you please create a general purpose issue to search and see where all we could use requires_redraw in chaco?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've opened #595

Copy link
Copy Markdown
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

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

LGTM

@rahulporuri rahulporuri merged commit 3315dbc into master Apr 2, 2021
@rahulporuri rahulporuri deleted the cln/dummy-returns-in-pkg branch April 2, 2021 12:08
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.

2 participants