diff --git a/material/plugins/privacy/plugin.py b/material/plugins/privacy/plugin.py index 779c67511..6875420f9 100644 --- a/material/plugins/privacy/plugin.py +++ b/material/plugins/privacy/plugin.py @@ -247,7 +247,7 @@ class PrivacyPlugin(BasePlugin[PrivacyConfig]): # Parse and extract all external assets from a media file using a preset # regular expression, and return all URLs found. - def _parse_media(self, initiator: File) -> "list[URL]": + def _parse_media(self, initiator: File) -> list[URL]: _, extension = posixpath.splitext(initiator.dest_uri) if extension not in self.assets_expr_map: return [] diff --git a/material/plugins/search/plugin.py b/material/plugins/search/plugin.py index 22cd6d215..a3199ab92 100644 --- a/material/plugins/search/plugin.py +++ b/material/plugins/search/plugin.py @@ -312,9 +312,9 @@ class Element: """ # Initialize HTML element - def __init__(self, tag, attrs = {}): + def __init__(self, tag, attrs = None): self.tag = tag - self.attrs = attrs + self.attrs = attrs or {} # String representation def __repr__(self):