8000 Remove some usages of OrderedDict by timhoffm · Pull Request #20078 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Remove some usages of OrderedDict #20078

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
Apr 26, 2021
Merged

Conversation

timhoffm
Copy link
Member

... and simplify related code.

@timhoffm timhoffm added this to the v3.5.0 milestone Apr 25, 2021
... and simplify related code.
@anntzer
Copy link
Contributor
anntzer commented Apr 26, 2021

(modulo ci)

with style.context({PARAM: other_value}):
assert mpl.rcParams[PARAM] == other_value
x = style.context([d])
x = style.context({PARAM: original_value, 'badparam': None})
Copy link
Member
@QuLogic QuLogic Apr 26, 2021

Choose a reason for hiding this comment

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

Do you need x, or can it just go in the with?

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 suppose this was written to check that the error occurs when entering the context, and not when creating it.

8E74
@QuLogic QuLogic merged commit 8ce1e02 into matplotlib:master Apr 26, 2021
@timhoffm timhoffm deleted the ordered-dict branch April 27, 2021 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0