mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-29 07:33:21 +08:00
Add stub for SameFileError. (#594)
This commit is contained in:
1 parent
490b34649f
commit
71042452c7
1 file changed
+3
@@ -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