shutil: update which for py38 (#3575)

This commit is contained in:
hauntsaninja
2020-01-05 07:19:03 -08:00
committed by Sebastian Rittau
parent 45688b936e
commit ac2e59af81

View File

@@ -117,8 +117,13 @@ if sys.version_info >= (3,):
def disk_usage(path: _Path) -> _ntuple_diskusage: ...
def chown(path: _Path, user: Optional[str] = ...,
group: Optional[str] = ...) -> None: ...
def which(cmd: _Path, mode: int = ...,
path: Optional[_Path] = ...) -> Optional[str]: ...
if sys.version_info >= (3, 8):
@overload
def which(cmd: _Path, mode: int = ..., path: Optional[_Path] = ...) -> Optional[str]: ...
@overload
def which(cmd: bytes, mode: int = ..., path: Optional[_Path] = ...) -> Optional[bytes]: ...
elif sys.version_info >= (3,):
def which(cmd: _Path, mode: int = ..., path: Optional[_Path] = ...) -> Optional[str]: ...
def make_archive(base_name: _AnyStr, format: str, root_dir: Optional[_Path] = ...,
base_dir: Optional[_Path] = ..., verbose: bool = ...,