-
Notifications
You must be signed in to change notification settings - Fork 85
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
Prevent typing install in Python 3.6+ #126
Conversation
@damienallen Hi, thanks very much for your contribution. Any clue why this happens?
|
Sorry, went fast and missed that. I will try it investigate and update the PR within the next week! |
Can't pin down why this is happening. I also can't reproduce this locally with Python 3.6.10 and mypy 0.770 (using It seems that there is an issue with retrieving the attrs from
This is where the logic lives to transform the module string from the settings dictionary into a proper import. This seems to work for me locally, so the mypy check passes. However, in travis, it seems that accessing the attr still returns a string which fails the I'm not so familiar with unit-testing with django settings, does any of this ring any bells? Thoughts on how to repro this locally? |
@damienallen thanks for your investigation. |
@damienallen looks there was some regression introduced with version djangorestframework-stubs==1.3.0, so I downgraded it for now. Unfortunately I don't have time now to do deeper investigation now to drop some reasonable github issue for that lib :( |
Checklist
make check && make test
) before submitting the PR on my branch and they passedDescription
This change prevents pip from installing the
typing
backport package for python versions 3.6+ where the module is included in the standard library.This is the officially recommended approach:
https://pypi.org/project/typing/
Why the change is needed?
In my case, docker builds are failing but the issue seems more widespread: python/typing#573