Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove install dependency on typing #167

Merged
merged 1 commit into from
Oct 15, 2019
Merged

remove install dependency on typing #167

merged 1 commit into from
Oct 15, 2019

Conversation

mattsb42-aws
Copy link
Member

This removes our install dependency on typing and adds shims on failed imports where necessary.

Issue #, if available:
fixes #166

Description of changes:

I was unable to duplicate the reported issue that triggered #166, but after considering how we are actually using typing (ie: only for typehints), I think that the right answer is to remove our install dependency entirely.

We only need typing to actually exist and work correctly when we do our type analysis, and we always run that with a version newer than 3.5.2, and the shims let the code work as intended when typing is not present.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mattsb42-aws mattsb42-aws requested review from ajw-aws and a team October 15, 2019 01:22
Copy link
Contributor

@ajw-aws ajw-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ajw-aws ajw-aws merged commit 62f5e7a into aws:master Oct 15, 2019
@mattsb42-aws mattsb42-aws deleted the dev-166 branch October 15, 2019 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cast is used in internal.io_handling but not imported if typing is not present
2 participants