X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9f096d55365cb63548eef97e254c2793ae2776a0..1747c388bba0c87f75a6239d56e3b51f7455e93d:/tests/function.py diff --git a/tests/function.py b/tests/function.py index 4ec9057..a181212 100644 --- a/tests/function.py +++ b/tests/function.py @@ -81,6 +81,15 @@ def trailing_comma(): C: 0.1 * (10.0 / 12), D: 0.1 * (10.0 / 12), } +def f( + a, + **kwargs, +) -> A: + return A( + very_long_argument_name1=very_long_value_for_the_argument, + very_long_argument_name2=very_long_value_for_the_argument, + **kwargs, + ) # output @@ -212,3 +221,11 @@ def trailing_comma(): C: 0.1 * (10.0 / 12), D: 0.1 * (10.0 / 12), } + + +def f(a, **kwargs) -> A: + return A( + very_long_argument_name1=very_long_value_for_the_argument, + very_long_argument_name2=very_long_value_for_the_argument, + **kwargs, + )