Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`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`.
- Loading branch information
Showing
5 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters