mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Replace 'Text' with 'str' in py3 stdlib (#5466)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import sys
|
||||
from typing import IO, Dict, List, Optional, Sequence, Text, Tuple, Union
|
||||
from typing import IO, Dict, List, Optional, Sequence, Tuple, Union
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from os import PathLike
|
||||
def guess_type(url: Union[Text, PathLike[str]], strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
||||
def guess_type(url: Union[str, PathLike[str]], strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
||||
|
||||
else:
|
||||
def guess_type(url: Text, strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
||||
def guess_type(url: str, 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]: ...
|
||||
|
||||
Reference in New Issue
Block a user