Skip to content

Commit 175df61

Browse files
committed
Updated distribution files
1 parent 6a2b62b commit 175df61

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

material/plugins/privacy/plugin.py

+1-1
Original file line numberDiff line numberDiff 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 []

material/plugins/search/plugin.py

+2-2
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)