Skip to content

Commit 99c223c

Browse files
authored
Initialize children in Document.__init__() (#209)
* Initialize children in Document.__init__() * Remove redundant call to super().__init__()
1 parent 21445dd commit 99c223c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marko/block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Document(BlockElement):
7878
virtual = True
7979

8080
def __init__(self) -> None:
81-
super().__init__()
81+
self.children = []
8282
self.link_ref_defs: dict[str, tuple[str, str]] = {}
8383

8484

0 commit comments

Comments
 (0)