Skip to content

Commit 1b45f72

Browse files
committed
docs(aws): removed pylint disable and tweaked import error message
1 parent 8680068 commit 1b45f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsp/modules/aws_providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def __init__(
3333
batch_n_enabled (bool): If False, call the LM N times rather than batching.
3434
"""
3535
try:
36-
import boto3 # pylint: disable=import-outside-toplevel
36+
import boto3
3737
except ImportError as exc:
38-
raise ImportError('Please install boto3 to use AWS models.') from exc
38+
raise ImportError('pip install boto3 to use AWS models.') from exc
3939

4040
if profile_name is None:
4141
self.predictor = boto3.client(service_name, region_name=region_name)

0 commit comments

Comments
 (0)