importlib_metadata icon indicating copy to clipboard operation
importlib_metadata copied to clipboard

Add Use Protocol from typing_extensions for Python < 3.8

Open monou-jp opened this issue 11 months ago • 0 comments

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.

monou-jp avatar Feb 03 '25 05:02 monou-jp