Skip to content

Commit e49095b

Browse files
committed
remove union
1 parent af7d7de commit e49095b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sagemaker/modules/train/model_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class ModelTrainer(BaseModel):
152152
source_code (Optional[SourceCode]):
153153
The source code configuration. This is used to configure the source code for
154154
running the training job.
155-
distributed (Optional[Union[DistributedConfig]]):
155+
distributed (Optional[DistributedConfig]):
156156
The distributed runner for the training job. This is used to configure
157157
a distributed training job. If specifed, ``source_code`` must also
158158
be provided.
@@ -213,7 +213,7 @@ class ModelTrainer(BaseModel):
213213
role: Optional[str] = None
214214
base_job_name: Optional[str] = None
215215
source_code: Optional[SourceCode] = None
216-
distributed: Optional[Union[DistributedConfig]] = None
216+
distributed: Optional[DistributedConfig] = None
217217
compute: Optional[Compute] = None
218218
networking: Optional[Networking] = None
219219
stopping_condition: Optional[StoppingCondition] = None

0 commit comments

Comments
 (0)