Repository navigation
Commit 04a586c
authored
stubgenc: small fix in get_default_function_sig (#19822)
This small change fixes a crash in the case when a function arg has both
a default value and a non-string type annotation.
Here is an example:
```
def f(i: int = 0): pass
```1 parent e03d3c1 commit 04a586c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
0 commit comments