10000 Is bool by timhoffm · Pull Request #12051 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Is bool #12051

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

Merged
merged 1 commit into from
Sep 7, 2018
Merged

Is bool #12051

merged 1 commit into from
Sep 7, 2018

Conversation

timhoffm
Copy link
Member
@timhoffm timhoffm commented Sep 6, 2018

PR Summary

Replace usages of is True and is False by an ideomatic truth-value check.

@@ -1729,7 +1729,7 @@ def inner(ax, *args, data=None, **kwargs):
if not isinstance(label, str):
label = None

if (replace_names is None) or (replace_all_args is True):
if replace_names is None or replace_all_args:
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's just get #10928 merged instead.

@NelleV
Copy link
Member
NelleV commented Sep 7, 2018

Thanks @timhoffm

@NelleV NelleV merged commit f1f66b0 into matplotlib:master Sep 7, 2018
@timhoffm timhoffm deleted the is-bool branch September 7, 2018 20:10
@QuLogic QuLogic added this to the v3.1 milestone Nov 27, 2018
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.

5 participants
0