mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
17 lines
350 B
Python
17 lines
350 B
Python
from typing import Any, TypeVar
|
|
|
|
__all__ = ["Error", "copy", "deepcopy"]
|
|
|
|
_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: dict[int, Any] | None = None, _nil: Any = []) -> _T: ...
|
|
def copy(x: _T) -> _T: ...
|
|
|
|
class Error(Exception): ...
|
|
|
|
error = Error
|