-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module 'mypy_boto3.emr' has no attribute 'Client' #8
Comments
Thank you for report. Just checked and looks like it is working for me. Make sure you executed # install `pip install boto3-stubs[emr]`
import boto3
from mypy_boto3.emr import Client
def emr_client_example() -> None:
# equivalent of `boto3.client('s3')`
client: Client = boto3.client("emr")
client.cancel_steps("cluster_id", [123]) Mypy output:
So, looks like it works for me. Please let me know if it still does not for you. |
I still get |
I am testing |
`from mypy_boto3_emr import Client` does work for me.
…On Thu, 12 Dec 2019 at 10:04, Vlad Emelianov ***@***.***> wrote:
I am testing 1.10.36.0 local build. Okay, so you have mypy-boto3-emr
installed. Does this work for you: from mypy_boto3_emr import Client ? If
yes - there is something wrong with my index builder.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=AB2ORDJJ2TAQTKDX2QIW7V3QYHWA7A5CNFSM4JZVMNVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGVZ42Y#issuecomment-564895339>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2ORDPUKUIELEUN5JSL2NLQYHWA7ANCNFSM4JZVMNVA>
.
|
Hmm, then it looks like services index is wrong. could you try |
|
Sorry, |
Any updates? Version |
With |
Hmm, yes, makes sense, as mypy does not like aliases. Use |
👍
…On Mon, Dec 16, 2019, 19:10 Vlad Emelianov ***@***.***> wrote:
Hmm, yes, makes sense, as boto3 does not like aliases. Use EMRClient and
EMRServiceResource. I decided to change class names to make type
resolution and error messages more clear.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8?email_source=notifications&email_token=AB2ORDOQDCES3X7IJ52TKU3QY6ZBLA5CNFSM4JZVMNVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG7NBQI#issuecomment-566153409>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2ORDKOMQ6M5OSW2TMROITQY6ZBLANCNFSM4JZVMNVA>
.
|
Sorry I misled you but the issue is not solved yet. Funny enough, now I get:
and
This is with version 1.10.40.1 |
This is very strange. please try to uninstall Let me know if it worked. Also, I try to update to |
Found it. I had |
Makes sense, will do in the next update. This is because of star imports in generated files, should be done properly. |
Should be fixed in |
executing
mypy -c 'from mypy_boto3.emr import Client'
produces the error<string>:1: error: Module 'mypy_boto3.emr' has no attribute 'Client'
.It seems that mypy does not support star imports, see python/mypy#4930
This is with Python 3.7.2 and mypy 0.750
The text was updated successfully, but these errors were encountered: