예제 #1
0
def type_of_callable_stores_func_index():
    def f():
        pass

    f._farthing_func_index = 42

    assert_equal(types.callable_ref(42), describe_type_of(f))
예제 #2
0
def callable_ref_has_callable_type():
    assert_equal("Callable", format_type(types.callable_ref(42)))