mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
specifiy Callable in sys.call_tracing (#230)
This commit is contained in:
committed by
Guido van Rossum
parent
eabecf89d8
commit
ff94f6def0
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user