Skip to content

Remove Mutable Default Argument in HLG - #6747

Merged
jrbourbeau merged 1 commit into
dask:masterfrom
madsbk:hlg_remove_mutable_default_argument
Oct 19, 2020
Merged

jrbourbeau merged 1 commit into
dask:masterfrom
madsbk:hlg_remove_mutable_default_argument

Conversation

@madsbk

@madsbk madsbk commented Oct 19, 2020 •

Copy link
Copy Markdown
Contributor

This PR removes the mutable default argument in HighLevelGraph, which is NOT what we want :)
See https://docs.python-guide.org/writing/gotchas/#mutable-default-arguments.

cc. @jrbourbeau

  • Tests added / passed
  • Passes black dask / flake8 dask

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @madsbk! Big +1 for this : )

Just a note that test_pivot_table is a known flaky test (xref #6729)

@jrbourbeau
jrbourbeau merged commit e85942f into dask:master Oct 19, 2020
@madsbk
madsbk deleted the hlg_remove_mutable_default_argument branch October 19, 2020 17:33
kumarprabhu1988 pushed a commit to kumarprabhu1988/dask that referenced this pull request Oct 29, 2020
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.

2 participants