Skip to content

Update signature_with_def option in pydocs generator#1855

Merged
barryyosi-panw merged 1 commit into
masterfrom
CRTX-238825/fix-def-prepended-to-code-blocks
Apr 12, 2026
Merged

Update signature_with_def option in pydocs generator#1855
barryyosi-panw merged 1 commit into
masterfrom
CRTX-238825/fix-def-prepended-to-code-blocks

Conversation

@barryyosi-panw
Copy link
Copy Markdown
Contributor

@barryyosi-panw barryyosi-panw commented Apr 12, 2026

Status

Ready

Related Issues

fixes: CRTX-238825

Description

The bug was introduced by commit fef4c9a ("migrate pydoc markdown to v4 #1853") on March 23, 2026.

In pydoc-markdown v3 (3.10.0), MarkdownRenderer.signature_with_def defaulted to False.
In pydoc-markdown v4 (>=4.8.2), MarkdownRenderer.signature_with_def defaults to True.

The migration did NOT add signature_with_def=False to the DemistoMarkdownRenderer instantiation in generate_pydoc(), causing def to be prepended to all function signatures in code blocks.

@content-bot
Copy link
Copy Markdown
Contributor

Preview Site Available

Congratulations! The automatic build has completed successfully.
A preview site is available at: https://xsoar-pan-dev--pull-request-1855-vrcid5xp.web.app


Important: Make sure to inspect your changes at the preview site.

@barryyosi-panw barryyosi-panw merged commit 3e6e28d into master Apr 12, 2026
8 of 9 checks passed
@barryyosi-panw barryyosi-panw deleted the CRTX-238825/fix-def-prepended-to-code-blocks branch April 12, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants