diff --git a/tests/data/cases/type_param_defaults.py b/tests/data/cases/type_param_defaults.py index 289e1ec7efe..cd844fe0746 100644 --- a/tests/data/cases/type_param_defaults.py +++ b/tests/data/cases/type_param_defaults.py @@ -14,6 +14,12 @@ def simple[T=something_that_is_long](short1: int, short2: str, short3: bytes) -> def longer[something_that_is_long=something_that_is_long](something_that_is_long: something_that_is_long) -> something_that_is_long: pass +def trailing_comma1[T=int,](a: str): + pass + +def trailing_comma2[T=int](a: str,): + pass + # output type A[T = int] = float @@ -41,3 +47,15 @@ def longer[ something_that_is_long = something_that_is_long ](something_that_is_long: something_that_is_long) -> something_that_is_long: pass + + +def trailing_comma1[ + T = int, +](a: str): + pass + + +def trailing_comma2[ + T = int +](a: str,): + pass