Skip to content

Commit 3384534

Browse files
author
Dewen Qi
committed
change: Disable displaying type hints in doc signature and add PipelineVariable annotations in docstring
1 parent 284ddbe commit 3384534

38 files changed

+615
-537
lines changed

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@
9090
# Example configuration for intersphinx: refer to the Python standard library.
9191
intersphinx_mapping = {"http://docs.python.org/": None}
9292

93+
# -- Options for autodoc ----------------------------------------------------
94+
# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration
95+
96+
# Automatically extract typehints when specified and place them in
97+
# descriptions of the relevant function/method.
98+
autodoc_typehints = "description"
99+
93100
# autosummary
94101
autosummary_generate = True
95102

doc/workflows/pipelines/sagemaker.workflow.pipelines.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Entities
4646

4747
.. autoclass:: sagemaker.workflow.entities.Expression
4848

49+
.. autoclass:: sagemaker.workflow.entities.PipelineVariable
50+
4951
Execution Variables
5052
-------------------
5153

src/sagemaker/amazon/factorization_machines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def __init__(
333333
"""Initialization for FactorizationMachinesModel class.
334334
335335
Args:
336-
model_data (str): The S3 location of a SageMaker model data
336+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
337337
``.tar.gz`` file.
338338
role (str): An AWS IAM role (either name or full ARN). The Amazon
339339
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/ipinsights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def __init__(
236236
"""Creates object to get insights on S3 model data.
237237
238238
Args:
239-
model_data (str): The S3 location of a SageMaker model data
239+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
240240
``.tar.gz`` file.
241241
role (str): An AWS IAM role (either name or full ARN). The Amazon
242242
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/kmeans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def __init__(
260260
"""Initialization for KMeansModel class.
261261
262262
Args:
263-
model_data (str): The S3 location of a SageMaker model data
263+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
264264
``.tar.gz`` file.
265265
role (str): An AWS IAM role (either name or full ARN). The Amazon
266266
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/knn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def __init__(
252252
"""Function to initialize KNNModel.
253253
254254
Args:
255-
model_data (str): The S3 location of a SageMaker model data
255+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
256256
``.tar.gz`` file.
257257
role (str): An AWS IAM role (either name or full ARN). The Amazon
258258
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/lda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def __init__(
234234
"""Initialization for LDAModel class.
235235
236236
Args:
237-
model_data (str): The S3 location of a SageMaker model data
237+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
238238
``.tar.gz`` file.
239239
role (str): An AWS IAM role (either name or full ARN). The Amazon
240240
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/linear_learner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def __init__(
495495
"""Initialization for LinearLearnerModel.
496496
497497
Args:
498-
model_data (str): The S3 location of a SageMaker model data
498+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
499499
``.tar.gz`` file.
500500
role (str): An AWS IAM role (either name or full ARN). The Amazon
501501
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/ntm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def __init__(
263263
"""Initialization for NTMModel class.
264264
265265
Args:
266-
model_data (str): The S3 location of a SageMaker model data
266+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
267267
``.tar.gz`` file.
268268
role (str): An AWS IAM role (either name or full ARN). The Amazon
269269
SageMaker training jobs and APIs that create Amazon SageMaker

src/sagemaker/amazon/object2vec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def __init__(
358358
"""Initialization for Object2VecModel class.
359359
360360
Args:
361-
model_data (str): The S3 location of a SageMaker model data
361+
model_data (str or PipelineVariable): The S3 location of a SageMaker model data
362362
``.tar.gz`` file.
363363
role (str): An AWS IAM role (either name or full ARN). The Amazon
364364
SageMaker training jobs and APIs that create Amazon SageMaker

0 commit comments

Comments
 (0)