mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
various errors: fix base class (#3702)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -813,7 +813,7 @@ class TimeoutExpired(SubprocessError):
|
||||
stderr: Any
|
||||
|
||||
|
||||
class CalledProcessError(Exception):
|
||||
class CalledProcessError(SubprocessError):
|
||||
returncode: int
|
||||
# morally: _CMD
|
||||
cmd: Any
|
||||
|
||||
@@ -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] = ...,
|
||||
|
||||
Reference in New Issue
Block a user