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

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

No files matched your search

+17
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()