Skip to content

Commit

Permalink
Fix type annotation for Python 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed May 2, 2024
1 parent e3e8bbc commit 3dcdc4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion importlib_metadata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@

if TYPE_CHECKING:
from importlib import metadata as _legacy
from email.message import Message as _legacy_Metadata

if sys.version_info >= (3, 10):
from importlib.metadata import PackageMetadata as _legacy_Metadata
else:
from email.message import Message as _legacy_Metadata


__all__ = [
Expand Down

0 comments on commit 3dcdc4c

Please sign in to comment.