mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Updated distribution files
This commit is contained in:
parent
6a2b62b4f9
commit
175df61397
@ -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 []
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user