You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
root@0ebc7eb0b8d9:/# cat > test-pylint-boto3.py
import boto3
sqs = boto3.resource('sqs')
sqs_queue = sqs.Queue(url='http://...') # <<< pylint doesn't like this
s3 = boto3.resource('s3')
s3_obj = s3.Object(bucket_name='boto3', key='test.py') # <<< and this
Now run pylint:
root@0ebc7eb0b8d9:/# pylint -E test-pylint-boto3.py
************* Module test-pylint-boto3
/test-pylint-boto3.py:4:12: E1101: Instance of '' has no 'Queue' member (no-member)
/test-pylint-boto3.py:7:9: E1101: Instance of '' has no 'Object' member (no-member)
The latest one that worked was pylint == 2.2.3. Downgrade to that version and verify clean run:
TL;DR
With pylint==2.3.0 something changed and pylint can no longer be used with boto3. It doesn't depend on boto3 versions, I tried a few major ones back and the new pylint keeps throwing this error regardless of the boto3 version.
Can we get boto3 support back please?
The text was updated successfully, but these errors were encountered:
Thanks for the report. This is a duplicate of #3134. Also it's not like we "took" boto3 support from you intentionally. There probably is a bug somewhere in the inference which prevents properly inferring boto3 types, but we did not have time yet to further investigate the cause of that.
Somehow
pylint
2.3 and newer started complaining about a simpleboto3
resources. It can be easily reproduced in a cleandocker
container.Start the container and install the newest
boto3
andpylint
.Create a very simple test file:
Now run
pylint
:The latest one that worked was pylint == 2.2.3. Downgrade to that version and verify clean run:
TL;DR
With
pylint==2.3.0
something changed andpylint
can no longer be used withboto3
. It doesn't depend onboto3
versions, I tried a few major ones back and the newpylint
keeps throwing this error regardless of theboto3
version.Can we get
boto3
support back please?The text was updated successfully, but these errors were encountered: