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
aio_examples/s3_example.py:46: error: Extra key "key" for TypedDict "CopySourceTypeDef" [typeddict-unknown-key]
10
10
aio_examples/s3_example.py:54: error: Argument "CopySource" to "copy_from" of "ObjectSummary" has incompatible type "int"; expected "str | CopySourceTypeDef" [arg-type]
11
11
aio_examples/s3_example.py:58: error: Argument "RequestPayer" to "abort" of "MultipartUpload" has incompatible type "Literal['none']"; expected "Literal['requester']" [arg-type]
12
+
aio_examples/s3_example.py:59: error: Argument 1 to "Part" of "MultipartUpload" has incompatible type "str"; expected "int" [arg-type]
12
13
aio_examples/s3_example.py:60: error: Unexpected keyword argument "wrong_arg" for "delete" of "Bucket" [call-arg]
13
14
aio_examples/s3_example.py:60: error: Value of type "Coroutine[Any, Any, None]" must be used [unused-coroutine]
14
15
aio_examples/s3_example.py:60: note: Are you missing an await?
@@ -26,4 +27,4 @@ aio_examples/s3_example.py:104: error: Argument "Key" to "get_object" of "S3Clie
26
27
aio_examples/s3_example.py:106: error: "BotocoreClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
27
28
aio_examples/s3_example.py:110: error: Value of type "Coroutine[Any, Any, Iterator[bytes]]" must be used [unused-coroutine]
28
29
aio_examples/s3_example.py:110: note: Are you missing an await?
Copy file name to clipboardExpand all lines: aio_examples/pyright/s3_example.py.json
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,21 @@
119
119
},
120
120
"rule": "reportArgumentType"
121
121
},
122
+
{
123
+
"severity": "error",
124
+
"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 incompatible with \"int\"",
examples/s3_example.py:45: error: Extra key "key" for TypedDict "CopySourceTypeDef" [typeddict-unknown-key]
7
7
examples/s3_example.py:53: error: Argument "CopySource" to "copy_from" of "ObjectSummary" has incompatible type "int"; expected "str | CopySourceTypeDef" [arg-type]
8
8
examples/s3_example.py:57: error: Argument "RequestPayer" to "abort" of "MultipartUpload" has incompatible type "Literal['none']"; expected "Literal['requester']" [arg-type]
9
+
examples/s3_example.py:58: error: Argument 1 to "Part" of "MultipartUpload" has incompatible type "str"; expected "int" [arg-type]
9
10
examples/s3_example.py:59: error: Unexpected keyword argument "wrong_arg" for "delete" of "Bucket" [call-arg]
10
11
examples/s3_example.py:71: error: Argument 3 to "download_fileobj" of "S3Client" has incompatible type "bytes"; expected "IO[Any] | StreamingBody" [arg-type]
11
12
examples/s3_example.py:72: error: Argument "IfModifiedSince" to "get_object" of "S3Client" has incompatible type "None"; expected "datetime | str" [arg-type]
Copy file name to clipboardExpand all lines: examples/pyright/s3_example.py.json
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,21 @@
89
89
},
90
90
"rule": "reportArgumentType"
91
91
},
92
+
{
93
+
"severity": "error",
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 incompatible with \"int\"",
0 commit comments