mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use ParamSpec in pdb.runcall (#7009)
This commit is contained in:
@@ -5,8 +5,10 @@ from cmd import Cmd
|
||||
from inspect import _SourceObjectType
|
||||
from types import CodeType, FrameType, TracebackType
|
||||
from typing import IO, Any, Callable, ClassVar, Iterable, Mapping, Sequence, TypeVar
|
||||
from typing_extensions import ParamSpec
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_P = ParamSpec("_P")
|
||||
|
||||
line_prefix: str # undocumented
|
||||
|
||||
@@ -15,7 +17,7 @@ class Restart(Exception): ...
|
||||
def run(statement: str, globals: dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> None: ...
|
||||
def runeval(expression: str, globals: dict[str, Any] | None = ..., locals: Mapping[str, Any] | None = ...) -> Any: ...
|
||||
def runctx(statement: str, globals: dict[str, Any], locals: Mapping[str, Any]) -> None: ...
|
||||
def runcall(func: Callable[..., _T], *args: Any, **kwds: Any) -> _T | None: ...
|
||||
def runcall(func: Callable[_P, _T], *args: _P.args, **kwds: _P.kwargs) -> _T | None: ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
def set_trace(*, header: str | None = ...) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user