We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This type checks even though I would expect it to fail:
$ cat app.py from typing import List import botocore.session def testit() -> List[str]: session = botocore.session.Session() client = session.create_client('s3') response = client.unknown_method() reveal_type(response) return [b['Name'] for b in response['Buckets']] testit() $ mypy app.py Success: no issues found in 1 source file
The reveal_type is Any which explains why it type checks.
reveal_type
Any
However, if I remove the BaseClient subclass in the stub definitions, then I get the error I expect:
BaseClient
-class S3(BaseClient): +class S3: def abort_multipart_upload(self, *, Bucket: str, Key: str, ... $ mypy app.py app.py:9: error: "S3" has no attribute "unknown_method" Found 1 error in 1 file (checked 1 source file)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This type checks even though I would expect it to fail:
The
reveal_type
isAny
which explains why it type checks.However, if I remove the
BaseClient
subclass in the stub definitions, then I get the error I expect:The text was updated successfully, but these errors were encountered: