mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
shutil: update which for py38 (#3575)
This commit is contained in:
committed by
Sebastian Rittau
parent
45688b936e
commit
ac2e59af81
@@ -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 = ...,
|
||||
|
||||
Reference in New Issue
Block a user