We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfbaf3 commit c10bdf3Copy full SHA for c10bdf3
‎importlib_metadata/compat/py39.py‎
@@ -2,7 +2,9 @@
2
Compatibility layer with Python 3.8/3.9
3
"""
4
5
-from typing import TYPE_CHECKING, Any, Optional
+from __future__ import annotations
6
+
7
+from typing import TYPE_CHECKING, Any
8
9
if TYPE_CHECKING: # pragma: no cover
10
# Prevent circular imports on runtime.
@@ -11,7 +13,7 @@
11
13
Distribution = EntryPoint = Any
12
14
15
-def normalized_name(dist: Distribution) -> Optional[str]:
16
+def normalized_name(dist: Distribution) -> str | None:
17
18
Honor name normalization for distributions that don't provide ``_normalized_name``.
19
0 commit comments