-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Error with running black 21.8b0 on python 3.6: cannot import name 'TypeGuard' #2465
Comments
I suspect this was submitted in error, so I'll close it. But feel free to edit the content and respond if you did have a bug that was bothering you! Edit: I see you just changed the title, I'm following along if you have any details! |
@ilsurih how did you install |
@MarcoGorelli, @felix-hilden, sorry, submitted by mistake, let me finish writing description details |
@MarcoGorelli, we are using tox to run tests and it installs typing-extensions |
I can't reproduce this on Python3.6 with typing-extensions 3.10.0.2, black 21.8b0, and the flake8 plugins you listed. Could you share your |
I noticed that we are locking
So it appears 21.8b0 introduced a change that is no longer compatible with |
Yes, 21.8b0 uses TypeGuard - that's why |
Describe the bug
After 21.8b0 was released our py-3.6 CI started failing with the following error:
ImportError: cannot import name 'TypeGuard'
To Reproduce
Not sure what exactly can help to reproduce this. Comparing to previous run, the only changed version is
black
andimportlib-metadata
.Expected behavior
NA, as it fails on startup
Environment (please complete the following information):
Using tox to install env, these are test dependencies:
Does this bug also happen on main?
NA, as it is fails on startup
Additional context
typing-extensions released new patch for issue listed in changelog of 8b0: python/typing#865
Our CI doesn't lock version, however build is still failing
Current workaround is to lock to 7b0 and build passes with that version
The text was updated successfully, but these errors were encountered: