Skip to content

Commit e4c2e86

Browse files
committed
Update integration tests
1 parent a9c2271 commit e4c2e86

File tree

14 files changed

+35
-42
lines changed

14 files changed

+35
-42
lines changed

integration/boto3_stubs/mypy/s3_example.py.out

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ integration/boto3_stubs/s3_example.py:72: error: Unexpected keyword argument "bu
1414
integration/boto3_stubs/s3_example.py:79: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
1515
integration/boto3_stubs/s3_example.py:82: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
1616
integration/boto3_stubs/s3_example.py:82: note: Did you mean "Expiration"?
17-
integration/boto3_stubs/s3_example.py:89: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
18-
integration/boto3_stubs/s3_example.py:89: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
17+
integration/boto3_stubs/s3_example.py:89: error: List item 0 has incompatible type "dict[str, Sequence[str]]"; expected "CORSRuleTypeDef | CORSRuleOutputTypeDef" [list-item]
1918
integration/boto3_stubs/s3_example.py:96: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
2019
integration/boto3_stubs/s3_example.py:98: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
2120
integration/boto3_stubs/s3_example.py:106: error: "ClientError" has no attribute "operations_names"; maybe "operation_name"? [attr-defined]
22-
Found 20 errors in 1 file (checked 1 source file)
21+
Found 19 errors in 1 file (checked 1 source file)

integration/boto3_stubs/pyright/s3_example.py.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@
211211
},
212212
{
213213
"severity": "error",
214-
"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\"",
214+
"message": "Argument of type \"dict[str, list[dict[str, tuple[str] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0Type \"dict[str, tuple[str] | list[str]]\" is not assignable to type \"CORSRuleUnionTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleOutputTypeDef\"",
215215
"range": {
216216
"start": {
217217
"line": 88,
218-
"character": 55
218+
"character": 26
219219
},
220220
"end": {
221221
"line": 88,
222-
"character": 71
222+
"character": 87
223223
}
224224
},
225225
"rule": "reportArgumentType"

integration/boto3_stubs_lite/mypy/s3_example.py.out

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ integration/boto3_stubs_lite/s3_example.py:72: error: Unexpected keyword argumen
1414
integration/boto3_stubs_lite/s3_example.py:79: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
1515
integration/boto3_stubs_lite/s3_example.py:82: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
1616
integration/boto3_stubs_lite/s3_example.py:82: note: Did you mean "Expiration"?
17-
integration/boto3_stubs_lite/s3_example.py:89: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
18-
integration/boto3_stubs_lite/s3_example.py:89: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
17+
integration/boto3_stubs_lite/s3_example.py:89: error: List item 0 has incompatible type "dict[str, Sequence[str]]"; expected "CORSRuleTypeDef | CORSRuleOutputTypeDef" [list-item]
1918
integration/boto3_stubs_lite/s3_example.py:96: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
2019
integration/boto3_stubs_lite/s3_example.py:98: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
2120
integration/boto3_stubs_lite/s3_example.py:106: error: "ClientError" has no attribute "operations_names"; maybe "operation_name"? [attr-defined]
22-
Found 20 errors in 1 file (checked 1 source file)
21+
Found 19 errors in 1 file (checked 1 source file)

integration/boto3_stubs_lite/pyright/s3_example.py.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,15 @@
211211
},
212212
{
213213
"severity": "error",
214-
"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\"",
214+
"message": "Argument of type \"dict[str, list[dict[str, tuple[str] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0Type \"dict[str, tuple[str] | list[str]]\" is not assignable to type \"CORSRuleUnionTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleOutputTypeDef\"",
215215
"range": {
216216
"start": {
217217
"line": 88,
218-
"character": 55
218+
"character": 26
219219
},
220220
"end": {
221221
"line": 88,
222-
"character": 71
222+
"character": 87
223223
}
224224
},
225225
"rule": "reportArgumentType"

integration/types_aioboto3/mypy/s3_example.py.out

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ integration/types_aioboto3/s3_example.py:82: note: Maybe you forgot to use "awai
2121
integration/types_aioboto3/s3_example.py:85: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
2222
integration/types_aioboto3/s3_example.py:88: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
2323
integration/types_aioboto3/s3_example.py:88: note: Did you mean "Expiration"?
24-
integration/types_aioboto3/s3_example.py:95: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
25-
integration/types_aioboto3/s3_example.py:95: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
24+
integration/types_aioboto3/s3_example.py:95: error: List item 0 has incompatible type "dict[str, Sequence[str]]"; expected "CORSRuleTypeDef | CORSRuleOutputTypeDef" [list-item]
2625
integration/types_aioboto3/s3_example.py:102: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
2726
integration/types_aioboto3/s3_example.py:104: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
2827
integration/types_aioboto3/s3_example.py:108: error: "AsyncIterator[bytes]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
29-
Found 24 errors in 1 file (checked 1 source file)
28+
Found 23 errors in 1 file (checked 1 source file)

integration/types_aioboto3/pyright/s3_example.py.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,15 @@
241241
},
242242
{
243243
"severity": "error",
244-
"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\"",
244+
"message": "Argument of type \"dict[str, list[dict[str, tuple[str] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0Type \"dict[str, tuple[str] | list[str]]\" is not assignable to type \"CORSRuleUnionTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleOutputTypeDef\"",
245245
"range": {
246246
"start": {
247247
"line": 94,
248-
"character": 59
248+
"character": 30
249249
},
250250
"end": {
251251
"line": 94,
252-
"character": 75
252+
"character": 91
253253
}
254254
},
255255
"rule": "reportArgumentType"

integration/types_aiobotocore/mypy/s3_example.py.out

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ integration/types_aiobotocore/s3_example.py:38: note: Maybe you forgot to use "a
66
integration/types_aiobotocore/s3_example.py:41: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
77
integration/types_aiobotocore/s3_example.py:44: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
88
integration/types_aiobotocore/s3_example.py:44: note: Did you mean "Expiration"?
9-
integration/types_aiobotocore/s3_example.py:51: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
10-
integration/types_aiobotocore/s3_example.py:51: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
9+
integration/types_aiobotocore/s3_example.py:51: error: List item 0 has incompatible type "dict[str, Sequence[str]]"; expected "CORSRuleTypeDef | CORSRuleOutputTypeDef" [list-item]
1110
integration/types_aiobotocore/s3_example.py:58: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
1211
integration/types_aiobotocore/s3_example.py:60: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
1312
integration/types_aiobotocore/s3_example.py:64: error: "AsyncIterator[bytes]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
14-
Found 11 errors in 1 file (checked 1 source file)
13+
Found 10 errors in 1 file (checked 1 source file)

integration/types_aiobotocore/pyright/s3_example.py.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@
9191
},
9292
{
9393
"severity": "error",
94-
"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\"",
94+
"message": "Argument of type \"dict[str, list[dict[str, tuple[str] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0Type \"dict[str, tuple[str] | list[str]]\" is not assignable to type \"CORSRuleUnionTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleOutputTypeDef\"",
9595
"range": {
9696
"start": {
9797
"line": 50,
98-
"character": 59
98+
"character": 30
9999
},
100100
"end": {
101101
"line": 50,
102-
"character": 75
102+
"character": 91
103103
}
104104
},
105105
"rule": "reportArgumentType"

integration/types_aiobotocore_lite/mypy/s3_example.py.out

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ integration/types_aiobotocore_lite/s3_example.py:38: note: Maybe you forgot to u
66
integration/types_aiobotocore_lite/s3_example.py:41: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
77
integration/types_aiobotocore_lite/s3_example.py:44: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
88
integration/types_aiobotocore_lite/s3_example.py:44: note: Did you mean "Expiration"?
9-
integration/types_aiobotocore_lite/s3_example.py:51: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
10-
integration/types_aiobotocore_lite/s3_example.py:51: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
9+
integration/types_aiobotocore_lite/s3_example.py:51: error: List item 0 has incompatible type "dict[str, Sequence[str]]"; expected "CORSRuleTypeDef | CORSRuleOutputTypeDef" [list-item]
1110
integration/types_aiobotocore_lite/s3_example.py:58: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
1211
integration/types_aiobotocore_lite/s3_example.py:60: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
1312
integration/types_aiobotocore_lite/s3_example.py:64: error: "AsyncIterator[bytes]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
14-
Found 11 errors in 1 file (checked 1 source file)
13+
Found 10 errors in 1 file (checked 1 source file)

integration/types_aiobotocore_lite/pyright/s3_example.py.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@
9191
},
9292
{
9393
"severity": "error",
94-
"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\"",
94+
"message": "Argument of type \"dict[str, list[dict[str, tuple[str] | list[str]]]]\" cannot be assigned to parameter \"CORSConfiguration\" of type \"CORSConfigurationTypeDef\" in function \"put_bucket_cors\"\n\u00a0\u00a0Type \"dict[str, tuple[str] | list[str]]\" is not assignable to type \"CORSRuleUnionTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"dict[str, tuple[str] | list[str]]\" is not assignable to \"CORSRuleOutputTypeDef\"",
9595
"range": {
9696
"start": {
9797
"line": 50,
98-
"character": 59
98+
"character": 30
9999
},
100100
"end": {
101101
"line": 50,
102-
"character": 75
102+
"character": 91
103103
}
104104
},
105105
"rule": "reportArgumentType"

0 commit comments

Comments
 (0)