Skip to content

Commit cb876ed

Browse files
author
Gray
committed
fix: linting
1 parent cc8ecaf commit cb876ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/sagemaker/session.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ def __init__(self, boto_session=None, sagemaker_client=None, sagemaker_runtime_c
7575
sagemaker_runtime_client (boto3.SageMakerRuntime.Client): Client which makes ``InvokeEndpoint``
7676
calls to Amazon SageMaker (default: None). Predictors created using this ``Session`` use this client.
7777
If not provided, one will be created using this instance's ``boto_session``.
78-
sts_endpoint_url (str): Endpoint URL for STS endpoint. If none provided, boto3 will default to use sts.amazonaws.com.
78+
sts_endpoint_url (str): Endpoint URL for STS endpoint. If none provided, boto3 will default to
79+
use sts.amazonaws.com.
7980
"""
8081
self._default_bucket = None
8182
self.sts_endpoint_url = sts_endpoint_url
@@ -181,7 +182,8 @@ def default_bucket(self):
181182
return self._default_bucket
182183

183184
if self.sts_endpoint_url:
184-
account = self.boto_session.client('sts', endpoint_url=self.sts_endpoint_url).get_caller_identity()['Account']
185+
account = \
186+
self.boto_session.client('sts', endpoint_url=self.sts_endpoint_url).get_caller_identity()['Account']
185187
else:
186188
account = self.boto_session.client('sts').get_caller_identity()['Account']
187189

@@ -1097,7 +1099,8 @@ def get_caller_identity_arn(self):
10971099
(str): The ARN user or role
10981100
"""
10991101
if self.sts_endpoint_url:
1100-
assumed_role = self.boto_session.client('sts', endpoint_url=self.sts_endpoint_url).get_caller_identity()['Arn']
1102+
assumed_role = \
1103+
self.boto_session.client('sts', endpoint_url=self.sts_endpoint_url).get_caller_identity()['Arn']
11011104
else:
11021105
assumed_role = self.boto_session.client('sts').get_caller_identity()['Arn']
11031106

0 commit comments

Comments
 (0)