X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/7bd6f3cb2ff11d385dbe433e2b03e9f7c94be33e..cf6f577928f5a1f4e98b02b8e723311cae830305:/tests/function.py?ds=sidebyside diff --git a/tests/function.py b/tests/function.py index 888ef9f..08ab2b8 100644 --- a/tests/function.py +++ b/tests/function.py @@ -31,6 +31,7 @@ def function_signature_stress_test(number:int,no_annotation=None,text:str="defau def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r''): offset = attr.ib(default=attr.Factory( lambda: _r.uniform(10000, 200000))) assert task._cancel_stack[:len(old_stack)] == old_stack +def spaces_types(a: int = 1, b: tuple = (), c: list = [], d: dict = {}, e: bool = True, f: int = -1, g: int = 1 if False else 2, h: str = "", i: str = r''): ... def spaces2(result= _core.Value(None)): ... def example(session): @@ -123,6 +124,20 @@ def spaces(a=1, b=(), c=[], d={}, e=True, f=-1, g=1 if False else 2, h="", i=r'' assert task._cancel_stack[:len(old_stack)] == old_stack +def spaces_types( + a: int = 1, + b: tuple = (), + c: list = [], + d: dict = {}, + e: bool = True, + f: int = -1, + g: int = 1 if False else 2, + h: str = "", + i: str = r'', +): + ... + + def spaces2(result=_core.Value(None)): ...