Extract: Correct newlines for classes and make it possible to be on a return/yield statement

This commit is contained in:
Dave Halter
2020-02-23 00:24:34 +01:00
parent 876109267a
commit b7be5a4fe2
3 changed files with 36 additions and 9 deletions

View File

@@ -44,3 +44,20 @@ def ab():
def f(x):
#? 11 text {'new_name': 'ab'}
return ab()
# -------------------------------------------------- in-method-1
class X:
def z(self): pass
def f(x):
#? 11 text {'new_name': 'ab'}
return x + 1 * 2
# ++++++++++++++++++++++++++++++++++++++++++++++++++
class X:
def z(self): pass
def ab():
return x + 1 * 2
def f(x):
#? 11 text {'new_name': 'ab'}
return ab()