From 87c296c96468f9a27f5b29ddacd500a81fdd46e3 Mon Sep 17 00:00:00 2001 From: Daniel Li Date: Mon, 11 Jun 2018 11:07:47 -0400 Subject: [PATCH] Some inspect.formatargspec args cannot be None (#2212) The annotations, formatarg, formatvarargs, formatvarkw, formatvalue, formatreturns, and formatannotations arguments to inspect.formatargspec have default values, but they cannot be None. --- stdlib/3/inspect.pyi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/stdlib/3/inspect.pyi b/stdlib/3/inspect.pyi index 3a10d6c4f..ce84e895d 100644 --- a/stdlib/3/inspect.pyi +++ b/stdlib/3/inspect.pyi @@ -219,13 +219,13 @@ def formatargspec(args: List[str], defaults: Optional[Tuple[Any, ...]] = ..., kwonlyargs: Optional[List[str]] = ..., kwonlydefaults: Optional[Dict[str, Any]] = ..., - annotations: Optional[Dict[str, Any]] = ..., - formatarg: Optional[Callable[[str], str]] = ..., - formatvarargs: Optional[Callable[[str], str]] = ..., - formatvarkw: Optional[Callable[[str], str]] = ..., - formatvalue: Optional[Callable[[Any], str]] = ..., - formatreturns: Optional[Callable[[Any], str]] = ..., - formatannotations: Optional[Callable[[Any], str]] = ..., + annotations: Dict[str, Any] = ..., + formatarg: Callable[[str], str] = ..., + formatvarargs: Callable[[str], str] = ..., + formatvarkw: Callable[[str], str] = ..., + formatvalue: Callable[[Any], str] = ..., + formatreturns: Callable[[Any], str] = ..., + formatannotations: Callable[[Any], str] = ..., ) -> str: ... def formatargvalues(args: List[str], varargs: Optional[str] = ...,