Files
typeshed/stdlib/2and3/copy.pyi
David Euresti 56e7aa6b48 Simplify, fix, and merge copy module (#1132)
* Simplify and add missing types for copy module.

Error and error were missing.  I also removed the internal arg memo.

* Move copy module into 2and3

* Bring back internal kwargs
2017-04-04 09:59:25 -07:00

12 lines
284 B
Python

# 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