specifiy Callable in sys.call_tracing (#230)

This commit is contained in:
Valérian Rousset
2016-05-30 18:32:56 +02:00
committed by Guido van Rossum
parent eabecf89d8
commit ff94f6def0

View File

@@ -4,10 +4,13 @@
# based on http://docs.python.org/3.2/library/sys.html
from typing import (
List, Sequence, Any, Dict, Tuple, TextIO, overload, Optional, Union
List, Sequence, Any, Dict, Tuple, TextIO, overload, Optional, Union,
TypeVar, Callable
)
from types import TracebackType
_T = TypeVar('_T')
# ----- sys variables -----
abiflags = ... # type: str
argv = ... # type: List[str]
@@ -108,7 +111,7 @@ version_info = ... # type: _version_info
# ----- sys function stubs -----
def call_tracing(fn: Any, args: Any) -> object: ...
def call_tracing(fn: Callable[..., _T], args: Any) -> _T: ...
def _clear_type_cache() -> None: ...
def _current_frames() -> Dict[int, Any]: ...
def displayhook(value: Optional[int]) -> None: ...