Example #1
0
from module_b import func_b1, func_b2

b1_global = func_b1()
b2_global = func_b2()


def func_a1():
    ...


def func_a2():
    ...
Example #2
0
def func_a():
    b = func_b1()
    ...
Example #3
0
def func_a():
    b: B = func_b1()
    ...
Example #4
0
def func_a():
    from module_b import func_b1

    b = func_b1()
    ...
Example #5
0
def func_a():
    b: module_b.B = module_b.func_b1()
    ...
Example #6
0
def func_a():
    b = module_b.func_b1()
    ...
Example #7
0
import module_b

b1_global = module_b.func_b1()
b2_global = module_b.func_b2()


def func_a1():
    ...


def func_a2():
    ...