mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
clean python 3 specific stuff from stdlib/@python2 stubs (#5451)
This commit is contained in:
@@ -1,13 +1,7 @@
|
||||
import sys
|
||||
from typing import IO, Dict, List, Optional, Sequence, Text, 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]]: ...
|
||||
|
||||
else:
|
||||
def guess_type(url: Text, strict: bool = ...) -> Tuple[Optional[str], Optional[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]: ...
|
||||
def init(files: Optional[Sequence[str]] = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user