X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/ca9ad698ef75736828b644678eba2f4836db6277..a497570fcb364b40e0d952d3133e8d4f2d329fea:/tests/data/comments6.py?ds=inline diff --git a/tests/data/comments6.py b/tests/data/comments6.py index 0a0bf46..735c6aa 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,22 @@ def func( 0.0456, 0.0789, a[-1], # type: ignore - ) \ No newline at end of file + ) + + c = call( + "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa", "aaaaaaaa" # type: ignore + ) + + +result = ( # aaa + "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +) + +AAAAAAAAAAAAA = [AAAAAAAAAAAAA] + SHARED_AAAAAAAAAAAAA + USER_AAAAAAAAAAAAA + AAAAAAAAAAAAA # type: ignore + +call_to_some_function_asdf( + foo, + [AAAAAAAAAAAAAAAAAAAAAAA, AAAAAAAAAAAAAAAAAAAAAAA, AAAAAAAAAAAAAAAAAAAAAAA, BBBBBBBBBBBB], # type: ignore +) + +aaaaaaaaaaaaa, bbbbbbbbb = map(list, map(itertools.chain.from_iterable, zip(*items))) # type: ignore[arg-type]