File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -291,11 +291,12 @@ def walk_tree(root: Element,
291
291
292
292
return results
293
293
294
- class ElementFamily (NamedTuple ):
295
- grandparent : Optional [Element ]
296
- parent : Element
297
- child : Element
298
- in_blockquote : bool
294
+ ElementFamily = NamedTuple ('ElementFamily' , [
295
+ ('grandparent' , Optional [Element ]),
296
+ ('parent' , Element ),
297
+ ('child' , Element ),
298
+ ('in_blockquote' , bool ),
299
+ ])
299
300
300
301
T = TypeVar ("T" )
301
302
@@ -1527,9 +1528,10 @@ class BugdownListPreprocessor(markdown.preprocessors.Preprocessor):
1527
1528
1528
1529
def run (self , lines : List [str ]) -> List [str ]:
1529
1530
""" Insert a newline between a paragraph and ulist if missing """
1530
- class Fence (NamedTuple ):
1531
- fence_str : str
1532
- is_code : bool
1531
+ Fence = NamedTuple ('Fence' , [
1532
+ ('fence_str' , str ),
1533
+ ('is_code' , bool ),
1534
+ ])
1533
1535
1534
1536
inserts = 0
1535
1537
in_code_fence : bool = False
You can’t perform that action at this time.
0 commit comments