diff --git a/python/helpers/python-skeletons/shutil.py b/python/helpers/python-skeletons/shutil.py deleted file mode 100644 index 1130481c91ee..000000000000 --- a/python/helpers/python-skeletons/shutil.py +++ /dev/null @@ -1,99 +0,0 @@ -"""Skeleton for 'shutil' stdlib module.""" - - -import sys - - -def copyfile(src, dst): - """Copy the contents (no metadata) of the file named src to a file named - dst. - - :type src: bytes | unicode - :type dst: bytes | unicode - :rtype: bytes | unicode - """ - pass - - -def copymode(src, dst): - """Copy the permission bits from src to dst. - - :type src: bytes | unicode - :type dst: bytes | unicode - :rtype: None - """ - pass - - -def copystat(src, dst): - """Copy the permission bits, last access time, last modification time, and - flags from src to dst. - - :type src: bytes | unicode - :type dst: bytes | unicode - :rtype: None - """ - pass - - -def copy(src, dst): - """Copy the file src to the file or directory dst. - - :type src: bytes | unicode - :type dst: bytes | unicode - :rtype: bytes | unicode - """ - pass - - -def copy2(src, dst): - """Similar to shutil.copy(), but metadata is copied as well. - - :type src: bytes | unicode - :type dst: bytes | unicode - :rtype: bytes | unicode - """ - pass - - -def ignore_patterns(*patterns): - """This factory function creates a function that can be used as a callable - for copytree()'s ignore argument, ignoring files and directories that match - one of the glob-style patterns provided. - - :type patterns: collections.Iterable[bytes | unicode] - :rtype: (bytes | unicode, list[bytes | unicode]) -> collections.Iterable[bytes | unicode] - """ - return lambda path, files: [] - - -def copytree(src, dst, symlinks=False, ignore=None): - """Recursively copy an entire directory tree rooted at src. - - :type src: bytes | unicode - :type dst: bytes | unicode - :type symlinks: bool - :type ignore: ((bytes | unicode, list[bytes | unicode]) -> collections.Iterable[bytes | unicode]) | None - :rtype: bytes | unicode - """ - pass - - -def rmtree(path, ignore_errors=False, onerror=None): - """Delete an entire directory tree. - - :type path: bytes | unicode - :type ignore_errors: bool - :type onerror: (unknown, bytes | unicode, unknown) -> None - :rtype: None - """ - - -def move(src, dst): - """Recursively move a file or directory (src) to another location (dst). - - :type src: bytes | unicode - :type dst: bytes | unicode - :rtype: bytes | unicode - """ - pass diff --git a/python/src/com/jetbrains/python/codeInsight/typing/PyTypeShed.kt b/python/src/com/jetbrains/python/codeInsight/typing/PyTypeShed.kt index 93591b805498..2d19bf2a8620 100644 --- a/python/src/com/jetbrains/python/codeInsight/typing/PyTypeShed.kt +++ b/python/src/com/jetbrains/python/codeInsight/typing/PyTypeShed.kt @@ -41,7 +41,7 @@ import java.io.File object PyTypeShed { private val ONLY_SUPPORTED_PY2_MINOR = 7 private val SUPPORTED_PY3_MINORS = 2..7 - val WHITE_LIST = setOf(TYPING, "six", "__builtin__", "builtins", "exceptions", "types", "datetime", "functools") + val WHITE_LIST = setOf(TYPING, "six", "__builtin__", "builtins", "exceptions", "types", "datetime", "functools", "shutil") private val BLACK_LIST = setOf() /**