Skip to content

Commit 03a090d

Browse files
committed
fix pylint and docstyle
1 parent bb4e184 commit 03a090d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sagemaker/local/entities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -847,8 +847,8 @@ def _initialize_and_validate_parameters(self, overridden_parameters):
847847
parameter_type = default_parameters[param_name].parameter_type
848848
if not isinstance(param_value, parameter_type.python_type):
849849
error_msg = self._construct_validation_exception_message(
850-
f"Unexpected type for parameter '{param_name}'. Expected {parameter_type.python_type} \
851-
but found {type(param_value)}."
850+
f"Unexpected type for parameter '{param_name}'. Expected \
851+
{parameter_type.python_type} but found {type(param_value)}."
852852
)
853853
raise ClientError(error_msg, "start_pipeline_execution")
854854
if param_value == "":

src/sagemaker/model_monitor/clarify_model_monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def __init__(
8686
object that configures network isolation, encryption of
8787
inter-container traffic, security group IDs, and subnets.
8888
"""
89-
if type(self) is __class__:
89+
if self.__class__ is __class__:
9090
raise TypeError(
9191
f"{__class__.__name__} is abstract, please instantiate its subclasses instead."
9292
)

src/sagemaker/serve/model_server/multi_model_server/prepare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def prepare_for_mms(
8484
image_uri: str,
8585
inference_spec: InferenceSpec = None,
8686
) -> str:
87-
"""Prepares for InferenceSpec using model_path, writes inference.py,
87+
"""Prepares for InferenceSpec using model_path, writes inference.py, \
8888
and captures dependencies to generate secret_key.
8989
9090
Args:to

0 commit comments

Comments
 (0)