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

fix flake8-bugbear B010 errors (YTEP0037 6/6 part 6) #2672

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

neutrinoceros
Copy link
Member

PR Summary

This partly addresses #2666, namely B010 "Do not call setattr with a constant attribute value"

@neutrinoceros neutrinoceros added enhancement Making something better code style Related to linting tools labels Jun 23, 2020
@neutrinoceros neutrinoceros added the yt-4.0 feature targeted for the yt-4.0 release label Jun 25, 2020
@neutrinoceros neutrinoceros changed the title fix: flake8-bugbear B010 errors (YTEP0037 6/6 part 6) fix flake8-bugbear B010 errors (YTEP0037 6/6 part 6) Jul 17, 2020
"_ipython_display_",
functools.partial(_wrap_display_ytarray, ret),
)
ret._ipython_display_ = functools.partial(_wrap_display_ytarray, ret)
Copy link
Member

Choose a reason for hiding this comment

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

I think I wrote this code, and I think I had a reason for using setattr but for the life of me I can't remember, so 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll take the blame it this ever breaks :)

@matthewturk matthewturk merged commit 8e1bc0f into yt-project:master Jul 22, 2020
@neutrinoceros neutrinoceros deleted the bugfix_b010_errors branch July 22, 2020 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code style Related to linting tools enhancement Making something better yt-4.0 feature targeted for the yt-4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants