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 c9ee08d commit 88a9a9eCopy full SHA for 88a9a9e
Doc/tools/extensions/availability.py
@@ -12,8 +12,6 @@
12
from sphinx.util.docutils import SphinxDirective
13
14
if TYPE_CHECKING:
15
- from collections.abc import Callable
16
-
17
from sphinx.application import Sphinx
18
from sphinx.util.typing import ExtensionMetadata
19
@@ -122,9 +120,7 @@ def parse_platforms(self) -> dict[str, str | bool]:
122
120
return platforms
123
121
124
125
-def _print_platform(
126
- platform: str, version: str | bool
127
-) -> str | Callable[[str], str]:
+def _print_platform(platform: str, version: str | bool) -> str:
128
if version is True:
129
return platform
130
if not version:
0 commit comments