From 99c223c93c0fbd7f2904ee7f1cb07b26f12c3170 Mon Sep 17 00:00:00 2001 From: Adrian Petrescu Date: Mon, 14 Oct 2024 20:28:21 -0400 Subject: [PATCH] Initialize children in Document.__init__() (#209) * Initialize children in Document.__init__() * Remove redundant call to super().__init__() --- marko/block.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marko/block.py b/marko/block.py index 2e893d5..9b38500 100644 --- a/marko/block.py +++ b/marko/block.py @@ -78,7 +78,7 @@ class Document(BlockElement): virtual = True def __init__(self) -> None: - super().__init__() + self.children = [] self.link_ref_defs: dict[str, tuple[str, str]] = {}