Skip to content

Commit ba4941b

Browse files
Migrate func_typecheck_callfunc_assigment.py to new functional tests
1 parent f84bf02 commit ba4941b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/input/func_typecheck_callfunc_assigment.py renamed to tests/functional/a/assigment_from_no_return.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ def func_no_return():
1515
"""function without return"""
1616
print('dougloup')
1717

18-
A = func_no_return()
18+
A = func_no_return() # [assignment-from-no-return]
1919

2020

2121
def func_return_none():
2222
"""function returning none"""
2323
print('dougloup')
2424
return None
2525

26-
A = func_return_none()
26+
A = func_return_none() # [assignment-from-none]
2727

2828

2929
def func_implicit_return_none():
3030
"""Function returning None from bare return statement."""
3131
return
3232

33-
A = func_implicit_return_none()
33+
A = func_implicit_return_none() # [assignment-from-none]
3434

3535

3636
def func_return_none_and_smth():
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
assignment-from-no-return:18:0::Assigning result of a function call, where the function has no return
2+
assignment-from-none:26:0::Assigning result of a function call, where the function returns None
3+
assignment-from-none:33:0::Assigning result of a function call, where the function returns None

0 commit comments

Comments
 (0)