From 6a9cddbcaf73e0c29e965d39c3e1fb2159cf36fa Mon Sep 17 00:00:00 2001 From: Eric Mark Martin Date: Sat, 29 Jun 2024 03:08:57 -0400 Subject: [PATCH] add a test case --- test-data/unit/stubgen.test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test-data/unit/stubgen.test b/test-data/unit/stubgen.test index 5dcb0706a8cbc..94d0edb2ae378 100644 --- a/test-data/unit/stubgen.test +++ b/test-data/unit/stubgen.test @@ -361,6 +361,15 @@ def g(x, *, y=1, z=2): ... def f(x, *, y: int = 1) -> None: ... def g(x, *, y: int = 1, z: int = 2) -> None: ... +[case testKeywordOnlyArg_inspect] +def f(x, *, y=1): ... +def g(x, *, y=1, z=2): ... +def h(x, *, y, z=2): ... +[out] +def f(x, *, y: int = ...): ... +def g(x, *, y: int = ..., z: int = ...): ... +def h(x, *, y, z: int = ...): ... + [case testProperty] class A: @property