Skip to content

Commit c10bdf3

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 2bfbaf3 commit c10bdf3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎importlib_metadata/compat/py39.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
Compatibility layer with Python 3.8/3.9
33
"""
44

5-
from typing import TYPE_CHECKING, Any, Optional
5+
from __future__ import annotations
6+
7+
from typing import TYPE_CHECKING, Any
68

79
if TYPE_CHECKING: # pragma: no cover
810
# Prevent circular imports on runtime.
@@ -11,7 +13,7 @@
1113
Distribution = EntryPoint = Any
1214

1315

14-
def normalized_name(dist: Distribution) -> Optional[str]:
16+
def normalized_name(dist: Distribution) -> str | None:
1517
"""
1618
Honor name normalization for distributions that don't provide ``_normalized_name``.
1719
"""

0 commit comments

Comments
 (0)