Skip to content
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

[Tune] Replace lambda default arguments #46596

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions python/ray/tune/tests/test_trial_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,10 @@ def assertProduces(fn, values):
seen.add(fn()["v"])
self.assertEqual(seen, values)

def explore_fn(
config, mutations, resample_probability, custom_explore_fn=lambda x: x
):
def explore_fn(config, mutations, resample_probability, custom_explore_fn=None):
if custom_explore_fn is None:
custom_explore_fn = lambda x: x # noqa: E731

new_config, _ = _explore(
config,
mutations,
Expand Down
Loading