File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 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):
247247
248248 # Parse and extract all external assets from a media file using a preset
249249 # 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 ]:
251251 _ , extension = posixpath .splitext (initiator .dest_uri )
252252 if extension not in self .assets_expr_map :
253253 return []
Original file line number Diff line number Diff line change @@ -312,9 +312,9 @@ class Element:
312312 """
313313
314314 # Initialize HTML element
315- def __init__ (self , tag , attrs = {} ):
315+ def __init__ (self , tag , attrs = None ):
316316 self .tag = tag
317- self .attrs = attrs
317+ self .attrs = attrs or {}
318318
319319 # String representation
320320 def __repr__ (self ):
You can’t perform that action at this time.
0 commit comments