mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user