Make attributes of inspect.ArgSpec optional in Python 3 (#3838)

This makes them consistent with Python 2 stubs.

The attributes are documented here:
https://docs.python.org/3/library/inspect.html#inspect.getargspec
This commit is contained in:
Jukka Lehtosalo
2020-03-10 12:15:20 +00:00
committed by GitHub
parent 2b8b116a19
commit 5162c536c8

View File

@@ -175,8 +175,8 @@ def getclasstree(classes: List[type], unique: bool = ...) -> Any: ...
class ArgSpec(NamedTuple):
args: List[str]
varargs: str
keywords: str
varargs: Optional[str]
keywords: Optional[str]
defaults: Tuple[Any, ...]
class Arguments(NamedTuple):