From 7b428ca0021ab4fcc4cd7d19479973e70589d33a Mon Sep 17 00:00:00 2001 From: "iapt@paloaltonetworks.com" Date: Thu, 9 Jan 2025 13:50:18 +0200 Subject: [PATCH] add init to DemistoMarkdownRender --- content-repo/gen_pydocs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/content-repo/gen_pydocs.py b/content-repo/gen_pydocs.py index 1576088c8..d3c1713c5 100755 --- a/content-repo/gen_pydocs.py +++ b/content-repo/gen_pydocs.py @@ -16,8 +16,12 @@ class DemistoMarkdownRenderer(MarkdownRenderer): - func_prefix = Field(str, default=None) - + def __init__(self, func_prefix=None, *args, **kwargs): + # Initialize func_prefix as an instance attribute + self.func_prefix = func_prefix + # Call the parent class constructor + super().__init__(*args, **kwargs) + module_overview = Field(str, default=None) # Overriding header levels from MarkdownRenderer to Function header to level 2