Skip to content

Commit 6a9cddb

Browse files
add a test case
1 parent 1842993 commit 6a9cddb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test-data/unit/stubgen.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,15 @@ def g(x, *, y=1, z=2): ...
361361
def f(x, *, y: int = 1) -> None: ...
362362
def g(x, *, y: int = 1, z: int = 2) -> None: ...
363363

364+
[case testKeywordOnlyArg_inspect]
365+
def f(x, *, y=1): ...
366+
def g(x, *, y=1, z=2): ...
367+
def h(x, *, y, z=2): ...
368+
[out]
369+
def f(x, *, y: int = ...): ...
370+
def g(x, *, y: int = ..., z: int = ...): ...
371+
def h(x, *, y, z: int = ...): ...
372+
364373
[case testProperty]
365374
class A:
366375
@property

0 commit comments

Comments
 (0)