mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add stub for SameFileError. (#594)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
# Stubs for shutil
|
||||
import sys
|
||||
|
||||
# Based on http://docs.python.org/3.2/library/shutil.html
|
||||
|
||||
@@ -27,6 +28,8 @@ def rmtree(path: str, ignore_errors: bool = ...,
|
||||
def move(src: str, dst: str) -> None: ...
|
||||
|
||||
class Error(Exception): ...
|
||||
if sys.version_info >= (3, 4):
|
||||
class SameFileError(Error): ...
|
||||
|
||||
def make_archive(base_name: str, format: str, root_dir: str = ...,
|
||||
base_dir: str = ..., verbose: bool = ...,
|
||||
|
||||
Reference in New Issue
Block a user