Skip to content
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

Generated response dicts don't include 'ResponseMetadata' #2

Open
fish-face opened this issue Mar 11, 2020 · 0 comments
Open

Generated response dicts don't include 'ResponseMetadata' #2

fish-face opened this issue Mar 11, 2020 · 0 comments

Comments

@fish-face
Copy link

e.g.

import boto3
session = boto3.Session()
s3 = session.resource('s3', ...)
bucket = s3.Bucket('foo')
object = bucket.Object('bar')
response = object.get()
print(f'Got status {response["ResponseMetadata"]["HTTPStatusCode"]}')

mypy on the above results in:

file.py:8: error: TypedDict "GetObjectOutputTypeDef" has no key 'ResponseMetadata'

However the actual returned response dict does have this key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant