This commit is contained in:
Philip House
2016-12-08 05:28:37 +08:00
committed by Jukka Lehtosalo
parent 00e4027b77
commit 090dafb9b0

View File

@@ -1,9 +1,9 @@
# Stubs for mimetypes
from typing import Dict, IO, Optional, Sequence, Tuple
from typing import Dict, IO, Optional, Sequence, Text, Tuple
import sys
def guess_type(url: str,
def guess_type(url: Text,
strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
def guess_all_extensions(type: str, strict: bool = ...) -> List[str]: ...
def guess_extension(type: str, strict: bool = ...) -> Optional[str]: ...