8000 gh-126609: localize list, allow translation of a phrase, use ge operator character in the availability directive by m-aciek · Pull Request #129597 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-126609: localize list, allow translation of a phrase, use ge operator character in the availability directive #129597

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix type annotations
  • Loading branch information
m-aciek committed Feb 2, 2025
commit 88a9a9e4c95ad742b031592c14358b3b30dbef9f
6 changes: 1 addition & 5 deletions Doc/tools/extensions/availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
from sphinx.util.docutils import SphinxDirective

if TYPE_CHECKING:
from collections.abc import Callable

from sphinx.application import Sphinx
from sphinx.util.typing import ExtensionMetadata

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


def _print_platform(
platform: str, version: str | bool
) -> str | Callable[[str], str]:
def _print_platform(platform: str, version: str | bool) -> str:
if version is True:
return platform
if not version:
Expand Down
Loading
0