mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -65,7 +65,7 @@ class Trace:
|
||||
self, cmd: str | types.CodeType, globals: Mapping[str, Any] | None = None, locals: Mapping[str, Any] | None = None
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def runfunc(self, __func: Callable[_P, _T], *args: _P.args, **kw: _P.kwargs) -> _T: ...
|
||||
def runfunc(self, func: Callable[_P, _T], /, *args: _P.args, **kw: _P.kwargs) -> _T: ...
|
||||
else:
|
||||
def runfunc(self, func: Callable[_P, _T], *args: _P.args, **kw: _P.kwargs) -> _T: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user