-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 imports of typing_extensions #5374
Conversation
@Dreamsorcerer if sys.version_info >= (3, 8):
from typing import Final
else:
from typing_extensions import Final to |
I'm not overly opposed to it, but I think it could make maintenance slightly more difficult. e.g. When we drop support for Python 3.7, I can currently grep for "3, 8" or "typing_extensions" to find every place that should be updated. I don't really want to leave the code importing from typedefs when it's no longer needed. |
Then it could be still present in |
Yep, OK, we'll do it that way. |
This pull request introduces 1 alert when merging ff09e43 into 726f44e - view on LGTM.com new alerts:
|
https://build.opensuse.org/request/show/893032 by user mcepl + dimstar_suse - Add stdlib-typing_extensions.patch to avoid necessity for BR python-typing_extensions (gh#aio-libs/aiohttp#5374).
Fixes #5107