diff options
Diffstat (limited to 'Lib/test/inspect_fodder2.py')
-rw-r--r-- | Lib/test/inspect_fodder2.py | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Lib/test/inspect_fodder2.py b/Lib/test/inspect_fodder2.py index 3d978cffe3d..bd7106fea86 100644 --- a/Lib/test/inspect_fodder2.py +++ b/Lib/test/inspect_fodder2.py @@ -7,7 +7,7 @@ def wrap(foo=None): # line 7 def replace(func): def insteadfunc(): - print 'hello' + print('hello') return insteadfunc # line 13 @@ -60,8 +60,8 @@ def with_comment(): # hello # line 61 multiline_sig = [ - lambda (x, - y): x+y, + lambda x, \ + y: x+y, None, ] @@ -96,4 +96,16 @@ def f(): "doc" return 42 return X -method_in_dynamic_class = f().g.im_func +method_in_dynamic_class = f().g + +#line 101 +def keyworded(*arg1, arg2=1): + pass + +#line 105 +def annotated(arg1: list): + pass + +#line 109 +def keyword_only_arg(*, arg): + pass |