You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
integration/boto3_stubs/s3_example.py:37: error: Unexpected keyword argument "mfa" for "delete" of "BucketObjectsCollection" [call-arg]
2
-
integration/boto3_stubs/s3_example.py:40: error: Argument "Config" to "upload_file" of "Bucket" has incompatible type "str"; expected "TransferConfig | None" [arg-type]
3
-
integration/boto3_stubs/s3_example.py:41: error: Missing key "Key" for TypedDict "BucketUploadFileRequestTypeDef" [typeddict-item]
4
-
integration/boto3_stubs/s3_example.py:41: error: Extra key "key" for TypedDict "BucketUploadFileRequestTypeDef" [typeddict-unknown-key]
5
-
integration/boto3_stubs/s3_example.py:45: error: Missing key "Key" for TypedDict "CopySourceTypeDef" [typeddict-item]
6
-
integration/boto3_stubs/s3_example.py:45: error: Extra key "key" for TypedDict "CopySourceTypeDef" [typeddict-unknown-key]
7
-
integration/boto3_stubs/s3_example.py:53: error: Argument "CopySource" to "copy_from" of "ObjectSummary" has incompatible type "int"; expected "str | CopySourceTypeDef" [arg-type]
8
-
integration/boto3_stubs/s3_example.py:57: error: Argument "RequestPayer" to "abort" of "MultipartUpload" has incompatible type "Literal['none']"; expected "Literal['requester']" [arg-type]
9
-
integration/boto3_stubs/s3_example.py:58: error: Argument 1 to "Part" of "MultipartUpload" has incompatible type "str"; expected "int" [arg-type]
10
-
integration/boto3_stubs/s3_example.py:59: error: Unexpected keyword argument "wrong_arg" for "delete" of "Bucket" [call-arg]
11
-
integration/boto3_stubs/s3_example.py:71: error: Argument 3 to "download_fileobj" of "S3Client" has incompatible type "bytes"; expected "IO[Any] | StreamingBody" [arg-type]
12
-
integration/boto3_stubs/s3_example.py:72: error: Argument "IfModifiedSince" to "get_object" of "S3Client" has incompatible type "None"; expected "datetime | str" [arg-type]
13
-
integration/boto3_stubs/s3_example.py:75: error: Unexpected keyword argument "bucket" for "wait" of "BucketExistsWaiter"; did you mean "Bucket"? [call-arg]
14
-
integration/boto3_stubs/s3_example.py:82: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
15
-
integration/boto3_stubs/s3_example.py:85: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
16
-
integration/boto3_stubs/s3_example.py:85: note: Did you mean "Expiration"?
17
-
integration/boto3_stubs/s3_example.py:92: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
18
-
integration/boto3_stubs/s3_example.py:92: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
19
-
integration/boto3_stubs/s3_example.py:99: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
20
-
integration/boto3_stubs/s3_example.py:101: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
21
-
integration/boto3_stubs/s3_example.py:109: error: "ClientError" has no attribute "operations_names"; maybe "operation_name"? [attr-defined]
1
+
integration/boto3_stubs/s3_example.py:34: error: Unexpected keyword argument "mfa" for "delete" of "BucketObjectsCollection" [call-arg]
2
+
integration/boto3_stubs/s3_example.py:37: error: Argument "Config" to "upload_file" of "Bucket" has incompatible type "str"; expected "TransferConfig | None" [arg-type]
3
+
integration/boto3_stubs/s3_example.py:38: error: Missing key "Key" for TypedDict "BucketUploadFileRequestTypeDef" [typeddict-item]
4
+
integration/boto3_stubs/s3_example.py:38: error: Extra key "key" for TypedDict "BucketUploadFileRequestTypeDef" [typeddict-unknown-key]
5
+
integration/boto3_stubs/s3_example.py:42: error: Missing key "Key" for TypedDict "CopySourceTypeDef" [typeddict-item]
6
+
integration/boto3_stubs/s3_example.py:42: error: Extra key "key" for TypedDict "CopySourceTypeDef" [typeddict-unknown-key]
7
+
integration/boto3_stubs/s3_example.py:50: error: Argument "CopySource" to "copy_from" of "ObjectSummary" has incompatible type "int"; expected "str | CopySourceTypeDef" [arg-type]
8
+
integration/boto3_stubs/s3_example.py:54: error: Argument "RequestPayer" to "abort" of "MultipartUpload" has incompatible type "Literal['none']"; expected "Literal['requester']" [arg-type]
9
+
integration/boto3_stubs/s3_example.py:55: error: Argument 1 to "Part" of "MultipartUpload" has incompatible type "str"; expected "int" [arg-type]
10
+
integration/boto3_stubs/s3_example.py:56: error: Unexpected keyword argument "wrong_arg" for "delete" of "Bucket" [call-arg]
11
+
integration/boto3_stubs/s3_example.py:68: error: Argument 3 to "download_fileobj" of "S3Client" has incompatible type "bytes"; expected "IO[Any] | StreamingBody" [arg-type]
12
+
integration/boto3_stubs/s3_example.py:69: error: Argument "IfModifiedSince" to "get_object" of "S3Client" has incompatible type "None"; expected "datetime | str" [arg-type]
13
+
integration/boto3_stubs/s3_example.py:72: error: Unexpected keyword argument "bucket" for "wait" of "BucketExistsWaiter"; did you mean "Bucket"? [call-arg]
14
+
integration/boto3_stubs/s3_example.py:79: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
15
+
integration/boto3_stubs/s3_example.py:82: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
16
+
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]
19
+
integration/boto3_stubs/s3_example.py:96: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
20
+
integration/boto3_stubs/s3_example.py:98: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
21
+
integration/boto3_stubs/s3_example.py:106: error: "ClientError" has no attribute "operations_names"; maybe "operation_name"? [attr-defined]
Copy file name to clipboardExpand all lines: integration/boto3_stubs/pyright/s3_example.py.json
+36-36Lines changed: 36 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@
4
4
"message": "No parameter named \"mfa\"",
5
5
"range": {
6
6
"start": {
7
-
"line": 36,
7
+
"line": 33,
8
8
"character": 26
9
9
},
10
10
"end": {
11
-
"line": 36,
11
+
"line": 33,
12
12
"character": 29
13
13
}
14
14
},
@@ -19,11 +19,11 @@
19
19
"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 not assignable to type \"TransferConfig | None\"\n\u00a0\u00a0\u00a0\u00a0\"Literal['test']\" is not assignable to \"TransferConfig\"\n\u00a0\u00a0\u00a0\u00a0\"Literal['test']\" is not assignable to \"None\"",
20
20
"range": {
21
21
"start": {
22
-
"line": 39,
22
+
"line": 36,
23
23
"character": 63
24
24
},
25
25
"end": {
26
-
"line": 39,
26
+
"line": 36,
27
27
"character": 69
28
28
}
29
29
},
@@ -34,11 +34,11 @@
34
34
"message": "Type \"dict[str, str]\" is not assignable to declared type \"BucketUploadFileRequestTypeDef\"\n\u00a0\u00a0\"key\" is an undefined item in type \"BucketUploadFileRequestTypeDef\"",
35
35
"range": {
36
36
"start": {
37
-
"line": 40,
37
+
"line": 37,
38
38
"character": 66
39
39
},
40
40
"end": {
41
-
"line": 40,
41
+
"line": 37,
42
42
"character": 71
43
43
}
44
44
},
@@ -49,11 +49,11 @@
49
49
"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\"",
50
50
"range": {
51
51
"start": {
52
-
"line": 44,
52
+
"line": 41,
53
53
"character": 37
54
54
},
55
55
"end": {
56
-
"line": 44,
56
+
"line": 41,
57
57
"character": 42
58
58
}
59
59
},
@@ -64,11 +64,11 @@
64
64
"message": "Argument of type \"Literal[123]\" cannot be assigned to parameter \"CopySource\" of type \"CopySourceOrStrTypeDef\" in function \"copy_from\"\n\u00a0\u00a0Type \"Literal[123]\" is not assignable to type \"CopySourceOrStrTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[123]\" is not assignable to \"str\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[123]\" is not assignable to \"CopySourceTypeDef\"",
65
65
"range": {
66
66
"start": {
67
-
"line": 52,
67
+
"line": 49,
68
68
"character": 37
69
69
},
70
70
"end": {
71
-
"line": 52,
71
+
"line": 49,
72
72
"character": 40
73
73
}
74
74
},
@@ -79,11 +79,11 @@
79
79
"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 not assignable to type \"Literal['requester']\"",
80
80
"range": {
81
81
"start": {
82
-
"line": 56,
82
+
"line": 53,
83
83
"character": 48
84
84
},
85
85
"end": {
86
-
"line": 56,
86
+
"line": 53,
87
87
"character": 54
88
88
}
89
89
},
@@ -94,11 +94,11 @@
94
94
"message": "Argument of type \"Literal['1']\" cannot be assigned to parameter \"part_number\" of type \"int\" in function \"Part\"\n\u00a0\u00a0\"Literal['1']\" is not assignable to \"int\"",
95
95
"range": {
96
96
"start": {
97
-
"line": 57,
97
+
"line": 54,
98
98
"character": 34
99
99
},
100
100
"end": {
101
-
"line": 57,
101
+
"line": 54,
102
102
"character": 37
103
103
}
104
104
},
@@ -109,11 +109,11 @@
109
109
"message": "No parameter named \"wrong_arg\"",
110
110
"range": {
111
111
"start": {
112
-
"line": 58,
112
+
"line": 55,
113
113
"character": 22
114
114
},
115
115
"end": {
116
-
"line": 58,
116
+
"line": 55,
117
117
"character": 31
118
118
}
119
119
},
@@ -124,11 +124,11 @@
124
124
"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 not assignable to type \"FileobjTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[b\"asd\"]\" is not assignable to \"IO[Any]\"\n\u00a0\u00a0\u00a0\u00a0\"Literal[b\"asd\"]\" is not assignable to \"StreamingBody\"",
125
125
"range": {
126
126
"start": {
127
-
"line": 70,
127
+
"line": 67,
128
128
"character": 45
129
129
},
130
130
"end": {
131
-
"line": 70,
131
+
"line": 67,
132
132
"character": 51
133
133
}
134
134
},
@@ -139,11 +139,11 @@
139
139
"message": "Argument of type \"None\" cannot be assigned to parameter \"IfModifiedSince\" of type \"TimestampTypeDef\" in function \"get_object\"\n\u00a0\u00a0Type \"None\" is not assignable to type \"TimestampTypeDef\"\n\u00a0\u00a0\u00a0\u00a0\"None\" is not assignable to \"datetime\"\n\u00a0\u00a0\u00a0\u00a0\"None\" is not assignable to \"str\"",
140
140
"range": {
141
141
"start": {
142
-
"line": 71,
142
+
"line": 68,
143
143
"character": 66
144
144
},
145
145
"end": {
146
-
"line": 71,
146
+
"line": 68,
147
147
"character": 70
148
148
}
149
149
},
@@ -154,11 +154,11 @@
154
154
"message": "Argument missing for parameter \"Bucket\"",
155
155
"range": {
156
156
"start": {
157
-
"line": 74,
157
+
"line": 71,
158
158
"character": 4
159
159
},
160
160
"end": {
161
-
"line": 74,
161
+
"line": 71,
162
162
"character": 46
163
163
}
164
164
},
@@ -169,11 +169,11 @@
169
169
"message": "No parameter named \"bucket\"",
170
170
"range": {
171
171
"start": {
172
-
"line": 74,
172
+
"line": 71,
173
173
"character": 30
174
174
},
175
175
"end": {
176
-
"line": 74,
176
+
"line": 71,
177
177
"character": 36
178
178
}
179
179
},
@@ -184,11 +184,11 @@
184
184
"message": "Argument missing for parameter \"Key\"",
185
185
"range": {
186
186
"start": {
187
-
"line": 81,
187
+
"line": 78,
188
188
"character": 4
189
189
},
190
190
"end": {
191
-
"line": 81,
191
+
"line": 78,
192
192
"character": 38
193
193
}
194
194
},
@@ -199,11 +199,11 @@
199
199
"message": "Could not access item in TypedDict\n\u00a0\u00a0\"expiration\" is not a defined key in \"GetObjectOutputTypeDef\"",
200
200
"range": {
201
201
"start": {
202
-
"line": 84,
202
+
"line": 81,
203
203
"character": 17
204
204
},
205
205
"end": {
206
-
"line": 84,
206
+
"line": 81,
207
207
"character": 76
208
208
}
209
209
},
@@ -214,11 +214,11 @@
214
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\"",
215
215
"range": {
216
216
"start": {
217
-
"line": 91,
217
+
"line": 88,
218
218
"character": 55
219
219
},
220
220
"end": {
221
-
"line": 91,
221
+
"line": 88,
222
222
"character": 71
223
223
}
224
224
},
@@ -229,11 +229,11 @@
229
229
"message": "Argument of type \"None\" cannot be assigned to parameter \"Key\" of type \"str\" in function \"get_object\"\n\u00a0\u00a0\"None\" is not assignable to \"str\"",
230
230
"range": {
231
231
"start": {
232
-
"line": 98,
232
+
"line": 95,
233
233
"character": 47
234
234
},
235
235
"end": {
236
-
"line": 98,
236
+
"line": 95,
237
237
"character": 51
238
238
}
239
239
},
@@ -244,11 +244,11 @@
244
244
"message": "Cannot access attribute \"operations_name\" for class \"ClientError\"\n\u00a0\u00a0Attribute \"operations_name\" is unknown",
245
245
"range": {
246
246
"start": {
247
-
"line": 100,
247
+
"line": 97,
248
248
"character": 16
249
249
},
250
250
"end": {
251
-
"line": 100,
251
+
"line": 97,
252
252
"character": 31
253
253
}
254
254
},
@@ -259,11 +259,11 @@
259
259
"message": "Cannot access attribute \"operations_names\" for class \"ClientError\"\n\u00a0\u00a0Attribute \"operations_names\" is unknown",
0 commit comments