MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / add

Function add

tests/generate_old_pickles.py:85–86  ·  view source on GitHub ↗
(x: MyClass[int], y: MyClass[int])

Source from the content-addressed store, hash-verified

83 dump_obj(MyClass, "class_with_type_hints.pkl")
84
85 def add(x: MyClass[int], y: MyClass[int]):
86 return MyClass(x.attribute + y.attribute)
87
88 dump_obj([MyClass, add], "function_with_type_hints.pkl")
89

Callers

nothing calls this directly

Calls 1

MyClassClass · 0.70

Tested by

no test coverage detected