Skip to content

Conversation

QuLogic
Copy link
Member

@QuLogic QuLogic commented Mar 14, 2024

PR summary

The error_kw parameter is a dictionary, on which setdefault is called, which would modify user input.

I know we always try to avoid modifying user input, but I couldn't find any tests for it, so I didn't add any.

PR checklist

The `error_kw` parameter is a dictionary, on which `setdefault` and
`pop` are called, which would modify user input.
@tacaswell tacaswell added this to the v3.8.4 milestone Mar 14, 2024
@tacaswell tacaswell merged commit 7164087 into matplotlib:main Mar 14, 2024
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 14, 2024
@QuLogic QuLogic deleted the bar-modify branch March 14, 2024 19:49
QuLogic added a commit that referenced this pull request Mar 14, 2024
…921-on-v3.8.x

Backport PR #27921 on branch v3.8.x (Avoid modifying user input to Axes.bar)
@ksunden ksunden mentioned this pull request Apr 4, 2024
5 tasks
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.

3 participants