Skip to content

replace [] default for data with None#734

Merged
aaronayres35 merged 1 commit into
masterfrom
mutable-defaults
May 10, 2021
Merged

replace [] default for data with None#734
aaronayres35 merged 1 commit into
masterfrom
mutable-defaults

Conversation

@aaronayres35
Copy link
Copy Markdown
Contributor

closes #617

This PR simply replaces having a mutable default data=[] with data=None and immediately sets data to a new empty list if data is None.

@aaronayres35 aaronayres35 requested a review from rahulporuri May 7, 2021 21:19
Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM

@aaronayres35 aaronayres35 merged commit 029f66e into master May 10, 2021
@aaronayres35 aaronayres35 deleted the mutable-defaults branch May 10, 2021 12:05
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.

Replace mutable default argument in plot_factory create_*_plot functions

2 participants