Skip to content

remove install dependency on typing#167

Merged
ajw-aws merged 1 commit intoaws:masterfrom
mattsb42-aws:dev-166
Oct 15, 2019
Merged

remove install dependency on typing#167
ajw-aws merged 1 commit intoaws:masterfrom
mattsb42-aws:dev-166

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 a team and ajw-aws 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