Skip to content

Commit

Permalink
Fix aibotocore integration
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Jan 17, 2025
1 parent 4bd58d5 commit 464b07c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
26 changes: 13 additions & 13 deletions integration/types_aiobotocore/mypy/s3_example.py.out
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
integration/types_aiobotocore/s3_example.py:31: error: Argument 3 to "download_fileobj" of "S3Client" has incompatible type "bytes"; expected "IO[Any] | StreamingBody" [arg-type]
integration/types_aiobotocore/s3_example.py:32: error: Argument "IfModifiedSince" to "get_object" of "S3Client" has incompatible type "None"; expected "datetime | str" [arg-type]
integration/types_aiobotocore/s3_example.py:35: error: Unexpected keyword argument "bucket" for "wait" of "BucketExistsWaiter"; did you mean "Bucket"? [call-arg]
integration/types_aiobotocore/s3_example.py:39: error: Value of type "Coroutine[Any, Any, CreateBucketOutputTypeDef]" is not indexable [index]
integration/types_aiobotocore/s3_example.py:39: note: Maybe you forgot to use "await"?
integration/types_aiobotocore/s3_example.py:42: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
integration/types_aiobotocore/s3_example.py:45: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
integration/types_aiobotocore/s3_example.py:45: note: Did you mean "Expiration"?
integration/types_aiobotocore/s3_example.py:52: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
integration/types_aiobotocore/s3_example.py:52: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
integration/types_aiobotocore/s3_example.py:59: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
integration/types_aiobotocore/s3_example.py:61: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
integration/types_aiobotocore/s3_example.py:65: error: "AsyncIterator[bytes]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
integration/types_aiobotocore/s3_example.py:30: error: Argument 3 to "download_fileobj" of "S3Client" has incompatible type "bytes"; expected "IO[Any] | StreamingBody" [arg-type]
integration/types_aiobotocore/s3_example.py:31: error: Argument "IfModifiedSince" to "get_object" of "S3Client" has incompatible type "None"; expected "datetime | str" [arg-type]
integration/types_aiobotocore/s3_example.py:34: error: Unexpected keyword argument "bucket" for "wait" of "BucketExistsWaiter"; did you mean "Bucket"? [call-arg]
integration/types_aiobotocore/s3_example.py:38: error: Value of type "Coroutine[Any, Any, CreateBucketOutputTypeDef]" is not indexable [index]
integration/types_aiobotocore/s3_example.py:38: note: Maybe you forgot to use "await"?
integration/types_aiobotocore/s3_example.py:41: error: Missing named argument "Key" for "get_object" of "S3Client" [call-arg]
integration/types_aiobotocore/s3_example.py:44: error: TypedDict "GetObjectOutputTypeDef" has no key "expiration" [typeddict-item]
integration/types_aiobotocore/s3_example.py:44: note: Did you mean "Expiration"?
integration/types_aiobotocore/s3_example.py:51: error: Missing key "AllowedOrigins" for TypedDict "CORSRuleTypeDef" [typeddict-item]
integration/types_aiobotocore/s3_example.py:51: error: Extra key "Allowedorigins" for TypedDict "CORSRuleTypeDef" [typeddict-unknown-key]
integration/types_aiobotocore/s3_example.py:58: error: Argument "Key" to "get_object" of "S3Client" has incompatible type "None"; expected "str" [arg-type]
integration/types_aiobotocore/s3_example.py:60: error: "ClientError" has no attribute "operations_name"; maybe "operation_name"? [attr-defined]
integration/types_aiobotocore/s3_example.py:64: error: "AsyncIterator[bytes]" has no attribute "__iter__"; maybe "__aiter__"? (not iterable) [attr-defined]
Found 11 errors in 1 file (checked 1 source file)
40 changes: 20 additions & 20 deletions integration/types_aiobotocore/pyright/s3_example.py.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"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\"",
"range": {
"start": {
"line": 30,
"line": 29,
"character": 55
},
"end": {
"line": 30,
"line": 29,
"character": 61
}
},
Expand All @@ -19,11 +19,11 @@
"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\"",
"range": {
"start": {
"line": 31,
"line": 30,
"character": 76
},
"end": {
"line": 31,
"line": 30,
"character": 80
}
},
Expand All @@ -34,11 +34,11 @@
"message": "Argument missing for parameter \"Bucket\"",
"range": {
"start": {
"line": 34,
"line": 33,
"character": 14
},
"end": {
"line": 34,
"line": 33,
"character": 56
}
},
Expand All @@ -49,11 +49,11 @@
"message": "No parameter named \"bucket\"",
"range": {
"start": {
"line": 34,
"line": 33,
"character": 40
},
"end": {
"line": 34,
"line": 33,
"character": 46
}
},
Expand All @@ -64,11 +64,11 @@
"message": "\"__getitem__\" method not defined on type \"Coroutine[Any, Any, CreateBucketOutputTypeDef]\"",
"range": {
"start": {
"line": 38,
"line": 37,
"character": 8
},
"end": {
"line": 38,
"line": 37,
"character": 16
}
},
Expand All @@ -79,11 +79,11 @@
"message": "Argument missing for parameter \"Key\"",
"range": {
"start": {
"line": 41,
"line": 40,
"character": 26
},
"end": {
"line": 41,
"line": 40,
"character": 60
}
},
Expand All @@ -94,11 +94,11 @@
"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": 51,
"line": 50,
"character": 59
},
"end": {
"line": 51,
"line": 50,
"character": 75
}
},
Expand All @@ -109,11 +109,11 @@
"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\"",
"range": {
"start": {
"line": 58,
"line": 57,
"character": 57
},
"end": {
"line": 58,
"line": 57,
"character": 61
}
},
Expand All @@ -124,11 +124,11 @@
"message": "Cannot access attribute \"operations_name\" for class \"ClientError\"\n\u00a0\u00a0Attribute \"operations_name\" is unknown",
"range": {
"start": {
"line": 60,
"line": 59,
"character": 20
},
"end": {
"line": 60,
"line": 59,
"character": 35
}
},
Expand All @@ -139,11 +139,11 @@
"message": "\"AsyncIterator[bytes]\" is not iterable\n\u00a0\u00a0\"__iter__\" method not defined",
"range": {
"start": {
"line": 64,
"line": 63,
"character": 21
},
"end": {
"line": 64,
"line": 63,
"character": 45
}
},
Expand Down

0 comments on commit 464b07c

Please sign in to comment.