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

Add support for Python < 3.8 #1

Merged
merged 1 commit into from Dec 2, 2022
Merged

Conversation

dmlls
Copy link
Contributor

@dmlls dmlls commented Sep 20, 2022

This PR adds support for Python < 3.8.

The motivation behind this PR is that I wanted to check the module on Google Colab, but since it (surprisingly) still runs Python 3.7, the typing.TypedDict import was failing. This type was introduced in Python 3.8.

Fortunately or unfortunately, the reality is that a lot of people use Colab, so making the module work on it will probably be helpful for the project.

The fix is based on python/typeshed#3500 (comment).

@bigabig bigabig merged commit d36a677 into bigabig:main Dec 2, 2022
@bigabig
Copy link
Owner

bigabig commented Dec 2, 2022

Thanks for your contribution, sorry for not noticing earlier!

@dmlls dmlls deleted the support-python<3.8 branch December 4, 2022 01:36
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.

None yet

2 participants