mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
15 lines
343 B
Python
15 lines
343 B
Python
# Stubs for copy
|
|
|
|
from typing import TypeVar, Optional, Dict, Any
|
|
|
|
_T = TypeVar('_T')
|
|
|
|
# None in CPython but non-None in Jython
|
|
PyStringMap: Any
|
|
|
|
# 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
|