mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
add some exception classes to shutil (#1334)
This commit is contained in:
committed by
Guido van Rossum
parent
ac0b809bf5
commit
d23fe74072
@@ -80,9 +80,18 @@ if sys.version_info >= (3, 3):
|
||||
def which(cmd: _Path, mode: int = ...,
|
||||
path: Optional[_Path] = ...) -> Optional[str]: ...
|
||||
|
||||
class Error(Exception): ...
|
||||
if sys.version_info >= (3, 4):
|
||||
class Error(OSError): ...
|
||||
class SameFileError(Error): ...
|
||||
class SpecialFileError(OSError): ...
|
||||
class ExecError(OSError): ...
|
||||
class ReadError(OSError): ...
|
||||
else:
|
||||
class Error(EnvironmentError): ...
|
||||
class SpecialFileError(EnvironmentError): ...
|
||||
class ExecError(EnvironmentError): ...
|
||||
class ReadError(EnvironmentError): ...
|
||||
class RegistryError(Exception): ...
|
||||
|
||||
def make_archive(base_name: str, format: str, root_dir: _Path = ...,
|
||||
base_dir: _Path = ..., verbose: bool = ...,
|
||||
|
||||
Reference in New Issue
Block a user