diff --git a/stdlib/3/sys.pyi b/stdlib/3/sys.pyi index 76e4cd65f..9e574ff87 100644 --- a/stdlib/3/sys.pyi +++ b/stdlib/3/sys.pyi @@ -143,7 +143,7 @@ def _getframe(depth: int) -> FrameType: ... _ProfileFunc = Callable[[FrameType, str, Any], Any] def getprofile() -> Optional[_ProfileFunc]: ... -def setprofile(profilefunc: _ProfileFunc) -> None: ... +def setprofile(profilefunc: Optional[_ProfileFunc]) -> None: ... _TraceFunc = Callable[[FrameType, str, Any], Optional[Callable[[FrameType, str, Any], Any]]] def gettrace() -> Optional[_TraceFunc]: ...