X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8f380911e0cd8057bd9a1f0c418d81195ce858a3..cd4295dd9888f491cfd9aae060d7832b7f831b24:/tests/data/comments6.py?ds=sidebyside diff --git a/tests/data/comments6.py b/tests/data/comments6.py index a2cd018..735c6aa 100644 --- a/tests/data/comments6.py +++ b/tests/data/comments6.py @@ -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 @@ -85,5 +99,20 @@ def func( a[-1], # type: ignore ) + 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 +) -result = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # aaa +aaaaaaaaaaaaa, bbbbbbbbb = map(list, map(itertools.chain.from_iterable, zip(*items))) # type: ignore[arg-type]