X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/ca9ad698ef75736828b644678eba2f4836db6277..0c44220e216f6d253087f96341110c693d3ef2d4:/tests/data/comments6.py diff --git a/tests/data/comments6.py b/tests/data/comments6.py index 0a0bf46..6e34b74 100644 --- a/tests/data/comments6.py +++ b/tests/data/comments6.py @@ -55,8 +55,8 @@ def f( an_element_with_a_long_value = calls() or more_calls() and more() # type: bool tup = ( - another_element, # type: int - another_really_really_long_element_with_a_unnecessarily_long_name_to_describe_what_it_does_enterprise_style, # type: int + another_element, + another_really_really_long_element_with_a_unnecessarily_long_name_to_describe_what_it_does_enterprise_style, ) # type: Tuple[int, int] a = ( @@ -69,6 +69,20 @@ def f( ) # type: int +def f( + x, # not a type comment + y, # type: int +): + # type: (...) -> None + pass + + +def f( + x, # not a type comment +): # type: (int) -> None + pass + + def func( a=some_list[0], # type: int ): # type: () -> int @@ -83,4 +97,7 @@ def func( 0.0456, 0.0789, a[-1], # type: ignore - ) \ No newline at end of file + ) + + +result = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # aaa