Skip to content

Commit 1a81a47

Browse files
committed
fix sphinx
1 parent 7cdc107 commit 1a81a47

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

w3lib/url.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,13 @@ def any_to_uri(uri_or_path: str) -> str:
364364
).encode()
365365
)
366366

367-
_ParseDataURIResult = namedtuple(
368-
"_ParseDataURIResult", "media_type media_type_parameters data"
367+
ParseDataURIResult = namedtuple(
368+
"ParseDataURIResult", "media_type media_type_parameters data"
369369
)
370+
ParseDataURIResult.__doc__ = "The return value type of `w3lib.url.parse_data_uri`."
370371

371372

372-
def parse_data_uri(uri: StrOrBytes) -> _ParseDataURIResult:
373+
def parse_data_uri(uri: StrOrBytes): # type: ignore
373374
"""
374375
375376
Parse a data: URI, returning a 3-tuple of media type, dictionary of media
@@ -426,7 +427,7 @@ def parse_data_uri(uri: StrOrBytes) -> _ParseDataURIResult:
426427
raise ValueError("invalid data URI")
427428
data = base64.b64decode(data)
428429

429-
return _ParseDataURIResult(media_type, media_type_params, data)
430+
return ParseDataURIResult(media_type, media_type_params, data)
430431

431432

432433
__all__ = [

0 commit comments

Comments
 (0)