Skip to content

Commit 88a9a9e

Browse files
committed
Fix type annotations
1 parent c9ee08d commit 88a9a9e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Doc/tools/extensions/availability.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
from sphinx.util.docutils import SphinxDirective
1313

1414
if TYPE_CHECKING:
15-
from collections.abc import Callable
16-
1715
from sphinx.application import Sphinx
1816
from sphinx.util.typing import ExtensionMetadata
1917

@@ -122,9 +120,7 @@ def parse_platforms(self) -> dict[str, str | bool]:
122120
return platforms
123121

124122

125-
def _print_platform(
126-
platform: str, version: str | bool
127-
) -> str | Callable[[str], str]:
123+
def _print_platform(platform: str, version: str | bool) -> str:
128124
if version is True:
129125
return platform
130126
if not version:

0 commit comments

Comments
 (0)