diff --git a/stdlib/2/copy.pyi b/stdlib/2/copy.pyi deleted file mode 100644 index 0661cb7d4..000000000 --- a/stdlib/2/copy.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for copy - -# NOTE: These are incomplete! - -from typing import TypeVar, Dict, Any - -_T = TypeVar('_T') - -def deepcopy(x: _T, memo: Dict[Any, Any] = ...) -> _T: ... -def copy(x: _T) -> _T: ... diff --git a/stdlib/2and3/copy.pyi b/stdlib/2and3/copy.pyi new file mode 100644 index 000000000..3f2635eb0 --- /dev/null +++ b/stdlib/2and3/copy.pyi @@ -0,0 +1,11 @@ +# Stubs for copy + +from typing import TypeVar, Optional, Dict, Any + +_T = TypeVar('_T') + +# Note: memo and _nil are internal kwargs. +def deepcopy(x: _T, memo: Optional[Dict[int, _T]] = ..., _nil: Any = ...) -> _T: ... +def copy(x: _T) -> _T: ... +class Error(Exception): ... +error = Error diff --git a/stdlib/3/copy.pyi b/stdlib/3/copy.pyi deleted file mode 100644 index 0661cb7d4..000000000 --- a/stdlib/3/copy.pyi +++ /dev/null @@ -1,10 +0,0 @@ -# Stubs for copy - -# NOTE: These are incomplete! - -from typing import TypeVar, Dict, Any - -_T = TypeVar('_T') - -def deepcopy(x: _T, memo: Dict[Any, Any] = ...) -> _T: ... -def copy(x: _T) -> _T: ...