importlib_metadata
importlib_metadata copied to clipboard
Add Use Protocol from typing_extensions for Python < 3.8
No module 'typing_extensions' on Python 3.7 #352
This PR fixes an issue that causes an ImportError when importing importlib_metadata/_meta.py in Python 3.7. Since Protocol does not exist in typing in Python 3.7, this change ensures that it is imported from typing-extensions for Python versions earlier than 3.8.