mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
change option "between top-level classes and functions" to "around ...", ensure that we put two lines between import and class (PY-7743)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from b import B
|
||||
|
||||
|
||||
class C(B):
|
||||
def __init__(self):
|
||||
super(C, self).__init__()
|
||||
@@ -1,6 +1,7 @@
|
||||
import lib1
|
||||
from lib1 import URLOpener
|
||||
|
||||
|
||||
def f(x):
|
||||
return x
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from lib1 import urlopen
|
||||
|
||||
|
||||
def g():
|
||||
return None
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import lib1
|
||||
import lib2
|
||||
|
||||
|
||||
def f():
|
||||
pass
|
||||
|
||||
|
||||
f()
|
||||
@@ -1,4 +1,5 @@
|
||||
import lib1 as iks
|
||||
|
||||
|
||||
def f(x):
|
||||
return iks.I(x)
|
||||
@@ -1,4 +1,5 @@
|
||||
from b import f as g
|
||||
|
||||
|
||||
def main():
|
||||
print(g(42))
|
||||
@@ -1,4 +1,5 @@
|
||||
__author__ = 'catherine'
|
||||
|
||||
|
||||
def function_1():
|
||||
pass
|
||||
@@ -1,4 +1,5 @@
|
||||
__author__ = 'catherine'
|
||||
|
||||
|
||||
def function_2():
|
||||
pass
|
||||
@@ -1,5 +1,6 @@
|
||||
from lib1 import S, K
|
||||
|
||||
|
||||
def f(x):
|
||||
from lib1 import I
|
||||
return S(K(I))(I)(42)
|
||||
@@ -1,5 +1,6 @@
|
||||
__author__ = 'user1'
|
||||
|
||||
|
||||
def f(url):
|
||||
'''Return the representation available at the URL.
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import lib1.mod1
|
||||
|
||||
|
||||
def f(x):
|
||||
return lib1.mod1.k(x)(42)
|
||||
@@ -1,4 +1,5 @@
|
||||
from b import f
|
||||
|
||||
|
||||
def main():
|
||||
print(f(-1))
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import a
|
||||
from b import f
|
||||
|
||||
|
||||
def main():
|
||||
print(f(42))
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from b import f
|
||||
|
||||
|
||||
def g():
|
||||
return f()
|
||||
@@ -1,4 +1,5 @@
|
||||
from p1 import m1
|
||||
|
||||
|
||||
def f():
|
||||
m1.g()
|
||||
@@ -1,4 +1,5 @@
|
||||
from a import f
|
||||
|
||||
|
||||
def use_f():
|
||||
f()
|
||||
Reference in New Issue
Block a user