mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
* 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
12 lines
284 B
Python
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
|