8000 gh-126609: docs: revert changes made to the internal structure of availability directive by m-aciek · Pull Request #129482 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-126609: docs: revert changes made to the internal structure of availability directive #129482

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
wants to merge 3 commits into from
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
Reformat with ruff
  • Loading branch information
m-aciek committed Jan 30, 2025
commit ba46cc954da0f042ce3266d44345b038bd51723a
9 changes: 5 additions & 4 deletions Doc/tools/extensions/availability.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ class Availability(SphinxDirective):
def run(self) -> list[nodes.container]:
availability_ref = ':ref:`Availability <availability>`: '
avail_nodes, avail_msgs = self.state.inline_text(
availability_ref + self.arguments[0],
self.lineno)
pnode = nodes.paragraph(availability_ref + self.arguments[0],
'', *avail_nodes, *avail_msgs)
availability_ref + self.arguments[0], self.lineno
)
pnode = nodes.paragraph(
availability_ref + self.arguments[0], '', *avail_nodes, *avail_msgs
)
self.set_source_info(pnode)
cnode = nodes.container("", pnode, classes=["availability"])
self.set_source_info(cnode)
Expand Down
Loading
0