Skip to content

Commit

Permalink
Update aio integration snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Apr 25, 2024
1 parent 94ac173 commit 2e4818a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 37 deletions.
3 changes: 1 addition & 2 deletions aio_examples/mypy/s3_example.py.out
Expand Up @@ -22,9 +22,8 @@ aio_examples/s3_example.py:90: error: TypedDict "GetObjectOutputTypeDef" has no
aio_examples/s3_example.py:90: note: Did you mean "Expiration"?
aio_examples/s3_example.py:97: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
aio_examples/s3_example.py:97: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
aio_examples/s3_example.py:97: error: Incompatible types (expression has type "tuple[str]", TypedDict item "AllowedMethods" has type "list[str]") [typeddict-item]
aio_examples/s3_example.py:104: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
aio_examples/s3_example.py:106: error: "BotocoreClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
aio_examples/s3_example.py:110: error: Value of type "Coroutine[Any, Any, Iterator[bytes]]" must be used [unused-coroutine]
aio_examples/s3_example.py:110: note: Are you missing an await?
Found 24 errors in 1 file (checked 1 source file)
Found 23 errors in 1 file (checked 1 source file)
70 changes: 35 additions & 35 deletions aio_examples/pyright/s3_example.py.json
@@ -1,7 +1,7 @@
[
{
"severity": "error",
"message": "Expression of type \"Coroutine[Any, Any, _Bucket]\" cannot be assigned to declared type \"Bucket\"\n\u00a0\u00a0\"Coroutine[Any, Any, _Bucket]\" is incompatible with \"Bucket\"",
"message": "Expression of type \"Coroutine[Any, Any, _Bucket]\" is incompatible with declared type \"Bucket\"\n\u00a0\u00a0\"Coroutine[Any, Any, _Bucket]\" is incompatible with \"Bucket\"",
"range": {
"start": {
"line": 36,
Expand All @@ -12,7 +12,7 @@
"character": 50
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportAssignmentType"
},
{
"severity": "error",
Expand All @@ -27,7 +27,7 @@
"character": 39
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportCallIssue"
},
{
"severity": "error",
Expand All @@ -42,11 +42,11 @@
"character": 59
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
"message": "Argument of type \"Literal['test']\" cannot be assigned to parameter \"Config\" of type \"TransferConfig | None\" in function \"upload_file\"\n\u00a0\u00a0Type \"Literal['test']\" cannot be assigned to type \"TransferConfig | None\"\n\u00a0\u00a0\u00a0\u00a0\"Literal['test']\" is incompatible with \"TransferConfig\"\n\u00a0\u00a0\u00a0\u00a0\"Literal['test']\" is incompatible with \"None\"",
"message": "Argument of type \"Literal['test']\" cannot be assigned to parameter \"Config\" of type \"TransferConfig | None\" in function \"upload_file\"\n\u00a0\u00a0Type \"Literal['test']\" is incompatible with type \"TransferConfig | None\"\n\u00a0\u00a0\u00a0\u00a0\"Literal['test']\" is incompatible with \"TransferConfig\"\n\u00a0\u00a0\u00a0\u00a0\"Literal['test']\" is incompatible with \"None\"",
"range": {
"start": {
"line": 40,
Expand All @@ -57,11 +57,11 @@
"character": 74
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
"message": "Expression of type \"dict[str, str]\" cannot be assigned to declared type \"BucketUploadFileRequestTypeDef\"\n\u00a0\u00a0\"key\" is an undefined field in type \"BucketUploadFileRequestTypeDef\"",
"message": "Expression of type \"dict[str, str]\" is incompatible with declared type \"BucketUploadFileRequestTypeDef\"\n\u00a0\u00a0\"key\" is an undefined item in type \"BucketUploadFileRequestTypeDef\"",
"range": {
"start": {
"line": 41,
Expand All @@ -72,11 +72,11 @@
"character": 75
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportAssignmentType"
},
{
"severity": "error",
"message": "Argument of type \"dict[str, str]\" cannot be assigned to parameter \"CopySource\" of type \"CopySourceTypeDef\" in function \"copy\"\n\u00a0\u00a0\"key\" is an undefined field in type \"CopySourceTypeDef\"",
"message": "Argument of type \"dict[str, str]\" cannot be assigned to parameter \"CopySource\" of type \"CopySourceTypeDef\" in function \"copy\"\n\u00a0\u00a0\"key\" is an undefined item in type \"CopySourceTypeDef\"",
"range": {
"start": {
"line": 45,
Expand All @@ -87,7 +87,7 @@
"character": 52
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
Expand All @@ -102,11 +102,11 @@
"character": 50
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
"message": "Argument of type \"Literal['none']\" cannot be assigned to parameter \"RequestPayer\" of type \"Literal['requester']\" in function \"abort\"\n\u00a0\u00a0\"Literal['none']\" cannot be assigned to type \"Literal['requester']\"",
"message": "Argument of type \"Literal['none']\" cannot be assigned to parameter \"RequestPayer\" of type \"Literal['requester']\" in function \"abort\"\n\u00a0\u00a0\"Literal['none']\" is incompatible with type \"Literal['requester']\"",
"range": {
"start": {
"line": 57,
Expand All @@ -117,7 +117,7 @@
"character": 64
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
Expand All @@ -132,11 +132,11 @@
"character": 35
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportCallIssue"
},
{
"severity": "error",
"message": "Argument of type \"Literal[b\"asd\"]\" cannot be assigned to parameter \"Fileobj\" of type \"FileobjTypeDef\" in function \"download_fileobj\"\n\u00a0\u00a0Type \"Literal[b\"asd\"]\" cannot be assigned to type \"FileobjTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[b\"asd\"]\" is incompatible with \"IO[Any]\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[b\"asd\"]\" is incompatible with \"StreamingBody\"",
"message": "Argument of type \"Literal[b\"asd\"]\" cannot be assigned to parameter \"Fileobj\" of type \"FileobjTypeDef\" in function \"download_fileobj\"\n\u00a0\u00a0Type \"Literal[b\"asd\"]\" is incompatible with type \"FileobjTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[b\"asd\"]\" is incompatible with \"IO[Any]\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[b\"asd\"]\" is incompatible with \"StreamingBody\"",
"range": {
"start": {
"line": 75,
Expand All @@ -147,11 +147,11 @@
"character": 61
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
"message": "Argument of type \"None\" cannot be assigned to parameter \"IfModifiedSince\" of type \"TimestampTypeDef\" in function \"get_object\"\n\u00a0\u00a0Type \"None\" cannot be assigned to type \"TimestampTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"None\" is incompatible with \"datetime\"\n\u00a0\u00a0\u00a0\u00a0\"None\" is incompatible with \"str\"",
"message": "Argument of type \"None\" cannot be assigned to parameter \"IfModifiedSince\" of type \"TimestampTypeDef\" in function \"get_object\"\n\u00a0\u00a0Type \"None\" is incompatible with type \"TimestampTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"None\" is incompatible with \"datetime\"\n\u00a0\u00a0\u00a0\u00a0\"None\" is incompatible with \"str\"",
"range": {
"start": {
"line": 76,
Expand All @@ -162,37 +162,37 @@
"character": 80
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
"message": "No parameter named \"bucket\"",
"message": "Argument missing for parameter \"Bucket\"",
"range": {
"start": {
"line": 79,
"character": 40
"character": 14
},
"end": {
"line": 79,
"character": 46
"character": 56
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportCallIssue"
},
{
"severity": "error",
"message": "Argument missing for parameter \"Bucket\"",
"message": "No parameter named \"bucket\"",
"range": {
"start": {
"line": 79,
"character": 14
"character": 40
},
"end": {
"line": 79,
"character": 56
"character": 46
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportCallIssue"
},
{
"severity": "error",
Expand All @@ -207,7 +207,7 @@
"character": 16
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportIndexIssue"
},
{
"severity": "error",
Expand All @@ -222,22 +222,22 @@
"character": 60
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportCallIssue"
},
{
"severity": "error",
"message": "Argument of type \"dict[str, list[dict[str, tuple[Literal['get']] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0\"tuple[Literal['get']]\" is incompatible with \"List[str]\"",
"message": "Argument of type \"dict[str, list[dict[str, tuple[Literal['get']] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0\"Allowedorigins\" is an undefined item in type \"CORSRuleTypeDef\"",
"range": {
"start": {
"line": 96,
"character": 49
"character": 59
},
"end": {
"line": 96,
"character": 57
"character": 75
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
Expand All @@ -252,11 +252,11 @@
"character": 61
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportArgumentType"
},
{
"severity": "error",
"message": "Cannot access member \"operations_name\" for type \"BotocoreClientError\"\n\u00a0\u00a0Member \"operations_name\" is unknown",
"message": "Cannot access attribute \"operations_name\" for class \"BotocoreClientError\"\n\u00a0\u00a0Attribute \"operations_name\" is unknown",
"range": {
"start": {
"line": 105,
Expand All @@ -267,7 +267,7 @@
"character": 35
}
},
"rule": "reportGeneralTypeIssues"
"rule": "reportAttributeAccessIssue"
},
{
"severity": "error",
Expand Down

0 comments on commit 2e4818a

Please sign in to comment.