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

fix: remove unnecessary typing-extensions for py3.8 #3

Merged
merged 1 commit into from
Feb 3, 2021

Conversation

nadobando
Copy link
Owner

Issue aws-powertools#280

Description of changes:

  1. Added if block to know if typing_extensions should be imported based on the python version.
    if python >= 3.8 typing extensions will not be imported and the native implementation will be used
    else will try to import typing_extensions and catch the ImportError

  2. Updated modules which imported this dependency.

  1. Updated pyproject.toml to only install typing-extensions when python version is <3.8
    Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nadobando nadobando merged commit 4020c94 into develop Feb 3, 2021
nadobando added a commit that referenced this pull request Feb 3, 2021
* chore: typo in parser docs

Signed-off-by: heitorlessa <lessa@amazon.co.uk>

* docs(appconfig): Use correct import for docstring (aws-powertools#271)

* docs(appconfig): Use correct import for docstring

* docs: Rename variable back

* chore: fix immer and socket.io CVEs (aws-powertools#278)

* fix: upgrade amplify to fix immer CVE

* fix: forcefully upgrade socket.io as gatsby can't be upgraded

* fix: remove unnecessary typing-extensions for py3.8 (#3)

Co-authored-by: heitorlessa <lessa@amazon.co.uk>
Co-authored-by: Michael Brewer <michael.brewer@gyft.com>
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.

1 participant