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))
def callable_ref_has_callable_type(): assert_equal("Callable", format_type(types.callable_ref(42)))
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))
def callable_ref_has_callable_type(): assert_equal("Callable", format_type(types.callable_ref(42)))