Skip to content

Commit dd6e734

Browse files
author
Payton Staub
committed
Add missing type hint
1 parent 3228a2e commit dd6e734

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/sagemaker/workflow/steps.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
CreateModelInput,
2626
TrainingInput,
2727
TransformInput,
28+
FileSystemInput
2829
)
2930
from sagemaker.model import Model
3031
from sagemaker.processing import (
@@ -44,7 +45,6 @@
4445
Properties,
4546
)
4647

47-
4848
class StepTypeEnum(Enum, metaclass=DefaultEnumMeta):
4949
"""Enum of step types."""
5050

@@ -145,7 +145,7 @@ def __init__(
145145
self,
146146
name: str,
147147
estimator: EstimatorBase,
148-
inputs: Union[TrainingInput, dict, str] = None,
148+
inputs: Union[TrainingInput, dict, str, FileSystemInput] = None,
149149
cache_config: CacheConfig = None,
150150
depends_on: List[str] = None,
151151
):
@@ -157,7 +157,8 @@ def __init__(
157157
Args:
158158
name (str): The name of the training step.
159159
estimator (EstimatorBase): A `sagemaker.estimator.EstimatorBase` instance.
160-
inputs (str or dict or sagemaker.inputs.TrainingInput): Information
160+
inputs (str or dict or sagemaker.inputs.TrainingInput
161+
or sagemaker.inputs.FileSystemInput): Information
161162
about the training data. This can be one of three types:
162163
163164
* (str) the S3 location where training data is saved, or a file:// path in
@@ -169,7 +170,7 @@ def __init__(
169170
that can provide additional information as well as the path to the training
170171
dataset.
171172
See :func:`sagemaker.inputs.TrainingInput` for full details.
172-
* (sagemaker.session.FileSystemInput) - channel configuration for
173+
* (sagemaker.inputs.FileSystemInput) - channel configuration for
173174
a file system data source that can provide additional information as well as
174175
the path to the training dataset.
175176

0 commit comments

Comments
 (0)