mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 21:42:25 +08:00
Misc stub fixes (#181)
This commit is contained in:
committed by
Guido van Rossum
parent
c21d8a41d5
commit
292447bd62
@@ -2,9 +2,9 @@
|
||||
|
||||
# NOTE: These are incomplete!
|
||||
|
||||
from typing import TypeVar
|
||||
from typing import TypeVar, Dict, Any
|
||||
|
||||
_T = TypeVar('_T')
|
||||
|
||||
def deepcopy(x: _T) -> _T: ...
|
||||
def deepcopy(x: _T, memo: Dict[Any, Any] = ...) -> _T: ...
|
||||
def copy(x: _T) -> _T: ...
|
||||
|
||||
@@ -13,11 +13,11 @@ _VT = TypeVar('_VT')
|
||||
|
||||
class ReferenceType(Generic[_T]):
|
||||
# TODO rest of members
|
||||
def __call__(self) -> Optional[_T]:
|
||||
...
|
||||
def __init__(o: _T, callback: Callable[[ReferenceType[_T]],
|
||||
Any] = ...) -> None: ...
|
||||
def __call__(self) -> Optional[_T]: ...
|
||||
|
||||
def ref(o: _T, callback: Callable[[ReferenceType[_T]],
|
||||
Any] = ...) -> ReferenceType[_T]: ...
|
||||
ref = ReferenceType
|
||||
|
||||
# TODO callback
|
||||
def proxy(object: _T) -> _T: ...
|
||||
|
||||
Reference in New Issue
Block a user