The GitHub Actions job "Build images for Update return types of `get_key` methods on `S3Hook` https://github.com/apache/airflow/pull/30923 " on airflow.git has failed. Run started by GitHub user jonshea (triggered by jonshea).
Head commit for run: dbe2182d35961f595b24822eddcf477789b1431c / Jon Shea <[email protected]> Update return types of `get_key` methods on `S3Hook` `S3Hook` has two methods, `get_key` and `get_wildcard_key`, which use an AWS `ServiceResource` to fetch object data from S3. Both methods are correctly documented as returning an instance of `S3.Object`, but their return types are annotated with `S3Transfer`. This is incorrect. The actual return type, `S3.Object`, is not a subtype of `S3Transfer`, and the two types have many different methods. This PR uses the `mypy-boto3-s3` package to set a correct return type of S3 resource `Object` for `get_key` and `get_wildcard_key`. Report URL: https://github.com/apache/airflow/actions/runs/4823782866 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
