File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ def _parse_fragment(self, fragment: str):
247
247
248
248
# Parse and extract all external assets from a media file using a preset
249
249
# regular expression, and return all URLs found.
250
- def _parse_media (self , initiator : File ) -> " list[URL]" :
250
+ def _parse_media (self , initiator : File ) -> list [URL ]:
251
251
_ , extension = posixpath .splitext (initiator .dest_uri )
252
252
if extension not in self .assets_expr_map :
253
253
return []
Original file line number Diff line number Diff line change @@ -312,9 +312,9 @@ class Element:
312
312
"""
313
313
314
314
# Initialize HTML element
315
- def __init__ (self , tag , attrs = {} ):
315
+ def __init__ (self , tag , attrs = None ):
316
316
self .tag = tag
317
- self .attrs = attrs
317
+ self .attrs = attrs or {}
318
318
319
319
# String representation
320
320
def __repr__ (self ):
You can’t perform that action at this time.
0 commit comments