From 4664b54d9dacb26aebf24e783e1dc50f3948345a Mon Sep 17 00:00:00 2001 From: Vlad Emelianov Date: Wed, 16 Aug 2023 18:04:22 +0300 Subject: [PATCH] Update integration tests --- examples/mypy/s3_example.py.out | 2 +- examples/pyright/s3_example.py.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/mypy/s3_example.py.out b/examples/mypy/s3_example.py.out index 38546451..55711f8e 100644 --- a/examples/mypy/s3_example.py.out +++ b/examples/mypy/s3_example.py.out @@ -1,5 +1,5 @@ examples/s3_example.py:19: error: Unexpected keyword argument "mfa" for "delete" of "BucketObjectsCollection" [call-arg] -examples/s3_example.py:22: error: Argument "Config" to "upload_file" of "Bucket" has incompatible type "str"; expected "TransferConfig" [arg-type] +examples/s3_example.py:22: error: Argument "Config" to "upload_file" of "Bucket" has incompatible type "str"; expected "TransferConfig | None" [arg-type] examples/s3_example.py:23: error: Missing key "Key" for TypedDict "BucketUploadFileRequestTypeDef" [typeddict-item] examples/s3_example.py:23: error: Extra key "key" for TypedDict "BucketUploadFileRequestTypeDef" [typeddict-unknown-key] examples/s3_example.py:27: error: Missing key "Key" for TypedDict "CopySourceTypeDef" [typeddict-item] diff --git a/examples/pyright/s3_example.py.json b/examples/pyright/s3_example.py.json index 221eda38..d46b09fe 100644 --- a/examples/pyright/s3_example.py.json +++ b/examples/pyright/s3_example.py.json @@ -16,7 +16,7 @@ }, { "severity": "error", - "message": "Argument of type \"Literal['test']\" cannot be assigned to parameter \"Config\" of type \"TransferConfig\" in function \"upload_file\"\n\u00a0\u00a0\"Literal['test']\" is incompatible with \"TransferConfig\"", + "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\u00a0Type cannot be assigned to type \"None\"", "range": { "start": { "line": 21,