fix(docutils): Use extend() instead of direct node.children assignment · tmux-python/tmuxp@77c4393 · GitHub
Skip to content

Commit 77c4393

Browse files
committed
fix(docutils): Use extend() instead of direct node.children assignment
Direct assignment to node.children bypasses docutils' setup_child() mechanism which maintains parent-child relationships, document references, and source tracking. Replace with clear() + extend() pattern to properly invoke the docutils protocol.
1 parent f879f92 commit 77c4393

2 files changed

Lines changed: 58 additions & 2 deletions

File tree

‎docs/_ext/argparse_exemplar.py‎

Lines changed: 4 additions & 2 deletions

‎tests/docs/_ext/test_argparse_exemplar.py‎

Lines changed: 54 additions & 0 deletions

0 commit comments

Comments
 (0)