various errors: fix base class (#3702)

This commit is contained in:
Shantanu
2020-02-01 09:15:23 -08:00
committed by GitHub
parent 123d2cb093
commit 4d698711ea
3 changed files with 3 additions and 3 deletions

View File

@@ -41,5 +41,5 @@ else:
def a2b_hex(hexstr: _Ascii) -> bytes: ...
def unhexlify(hexlify: _Ascii) -> bytes: ...
class Error(Exception): ...
class Error(ValueError): ...
class Incomplete(Exception): ...

View File

@@ -813,7 +813,7 @@ class TimeoutExpired(SubprocessError):
stderr: Any
class CalledProcessError(Exception):
class CalledProcessError(SubprocessError):
returncode: int
# morally: _CMD
cmd: Any

View File

@@ -6,7 +6,7 @@ from typing import BinaryIO, Callable, Optional, Union
_Path = Union[str, Path, BinaryIO]
class ZipAppError(Exception): ...
class ZipAppError(ValueError): ...
if sys.version_info >= (3, 7):
def create_archive(source: _Path, target: Optional[_Path] = ..., interpreter: Optional[str] = ..., main: Optional[str] = ...,