Skip to content

Commit 0a4d772

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
docs: Add default value to optional field parameter_values
PiperOrigin-RevId: 589865023
1 parent c9903ae commit 0a4d772

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/model-builder/experiment_tracking/log_pipeline_job_to_experiment_sample.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2023 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -23,9 +23,9 @@ def log_pipeline_job_to_experiment_sample(
2323
pipeline_job_display_name: str,
2424
template_path: str,
2525
pipeline_root: str,
26-
parameter_values: Optional[Dict[str, Any]],
2726
project: str,
2827
location: str,
28+
parameter_values: Optional[Dict[str, Any]] = None,
2929
):
3030
aiplatform.init(project=project, location=location)
3131

samples/model-builder/experiment_tracking/log_pipeline_job_to_experiment_sample_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Google LLC
1+
# Copyright 2023 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -25,9 +25,9 @@ def test_log_pipeline_job_sample(
2525
pipeline_job_display_name=constants.DISPLAY_NAME,
2626
template_path=constants.TEMPLATE_PATH,
2727
pipeline_root=constants.STAGING_BUCKET,
28-
parameter_values=constants.PARAMS,
2928
project=constants.PROJECT,
3029
location=constants.LOCATION,
30+
parameter_values=constants.PARAMS,
3131
)
3232

3333
mock_sdk_init.assert_called_with(

0 commit comments

Comments
 (0)