MCPcopy
hub / github.com/cloudpipe/cloudpickle / test_complex_function

Function test_complex_function

tests/test_backward_compat.py:82–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def test_complex_function():
83 MyClass, f = load_obj("function_with_type_hints.pkl")
84 assert len(f.__annotations__) > 0
85
86 a = MyClass(1)
87 b = MyClass(2)
88
89 c = f(a, b)
90 assert c.attribute == 3
91
92
93def test_nested_function():

Callers

nothing calls this directly

Calls 3

load_objFunction · 0.85
fFunction · 0.85
MyClassClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…