X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/7595dabb4387237b76e80bdee72fb6323b2d603b..90e14e8b619246ff787d10b94bd5a64d18e52b84:/tests/function.py diff --git a/tests/function.py b/tests/function.py index a181212..ea27ebb 100644 --- a/tests/function.py +++ b/tests/function.py @@ -85,11 +85,14 @@ 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, + return ( + yield from A( + very_long_argument_name1=very_long_value_for_the_argument, + very_long_argument_name2=very_long_value_for_the_argument, + **kwargs, + ) ) +def __await__(): return (yield) # output @@ -224,8 +227,14 @@ def trailing_comma(): 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, + return ( + yield from A( + very_long_argument_name1=very_long_value_for_the_argument, + very_long_argument_name2=very_long_value_for_the_argument, + **kwargs, + ) ) + + +def __await__(): + return (yield)