Skip to content

Commit

Permalink
Updated distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Dec 19, 2023
1 parent 6a2b62b commit 175df61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion material/plugins/privacy/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _parse_fragment(self, fragment: str):

# 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 []
Expand Down
4 changes: 2 additions & 2 deletions material/plugins/search/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 175df61

Please sign in to comment.