File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ Release date: TBA
18
18
19
19
Closes #1260
20
20
21
+ * Fix typing and update explanation for ``Arguments.args`` being ``None``.
22
+
21
23
22
24
What's New in astroid 2.9.0?
23
25
============================
Original file line number Diff line number Diff line change @@ -858,8 +858,13 @@ def __init__(
858
858
self .kwarg : Optional [str ] = kwarg # can be None
859
859
"""The name of the variable length keyword arguments."""
860
860
861
- self .args : typing .List [AssignName ]
862
- """The names of the required arguments."""
861
+ self .args : typing .Optional [typing .List [AssignName ]]
862
+ """The names of the required arguments.
863
+
864
+ Can be None if the assosciated function does not have a retrievable
865
+ signature and the arguments are therefore unknown.
866
+ This happens with builtin functions implemented in C.
867
+ """
863
868
864
869
self .defaults : typing .List [NodeNG ]
865
870
"""The default values for arguments that can be passed positionally."""
You can’t perform that action at this time.
0 commit comments