Skip to content

Commit d75322c

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
docs: fix docstring formatting for exceptions
PiperOrigin-RevId: 525017881
1 parent 7e6022b commit d75322c

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

google/cloud/aiplatform/jobs.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,8 +1243,8 @@ def __init__(
12431243
staging_bucket set in aiplatform.init.
12441244
12451245
Raises:
1246-
RuntimeError: If staging bucket was not set using aiplatform.init and a staging
1247-
bucket was not passed in.
1246+
RuntimeError: If staging bucket was not set using aiplatform.init
1247+
and a staging bucket was not passed in.
12481248
"""
12491249

12501250
super().__init__(project=project, location=location, credentials=credentials)
@@ -1458,8 +1458,8 @@ def from_local_script(
14581458
staging_bucket set in aiplatform.init.
14591459
14601460
Raises:
1461-
RuntimeError: If staging bucket was not set using aiplatform.init and a staging
1462-
bucket was not passed in.
1461+
RuntimeError: If staging bucket was not set using aiplatform.init
1462+
and a staging bucket was not passed in.
14631463
"""
14641464

14651465
project = project or initializer.global_config.project
@@ -1842,10 +1842,11 @@ def submit(
18421842
Optional. The timeout for the create request in seconds.
18431843
18441844
Raises:
1845-
ValueError: if both `experiment` and `tensorboard` are specified
1846-
or if `enable_autolog` is True in `CustomJob.from_local_script`
1847-
but `experiment` is not specified or the specified experiment
1848-
doesn't have a backing tensorboard.
1845+
ValueError:
1846+
If both `experiment` and `tensorboard` are specified or if
1847+
`enable_autolog` is True in `CustomJob.from_local_script` but
1848+
`experiment` is not specified or the specified experiment
1849+
doesn't have a backing tensorboard.
18491850
"""
18501851
if experiment and tensorboard:
18511852
raise ValueError("'experiment' and 'tensorboard' cannot be set together.")
@@ -2535,8 +2536,11 @@ def _parse_configs(
25352536
A List of ModelDeploymentMonitoringObjectiveConfig objects.
25362537
25372538
Raises:
2538-
ValueError, when the model IDs given are invalid.
2539-
RuntimeError, when XAI is enabled on a model that doesn't have XAI parameters configured.
2539+
ValueError:
2540+
When the model IDs given are invalid.
2541+
RuntimeError:
2542+
When XAI is enabled on a model that doesn't have XAI parameters
2543+
configured.
25402544
"""
25412545
all_models = []
25422546
xai_enabled = []

0 commit comments

Comments
 (0)