mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
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.
This commit is contained in:
committed by
Jelle Zijlstra
parent
af3b015aa8
commit
87c296c964
@@ -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] = ...,
|
||||
|
||||
Reference in New Issue
Block a user