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

Method test_function_annotations

tests/cloudpickle_test.py:2710–2715  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2708 assert isinstance(c2, C2)
2709
2710 def test_function_annotations(self):
2711 def f(a: int) -> str:
2712 pass
2713
2714 f1 = pickle_depickle(f, protocol=self.protocol)
2715 assert f1.__annotations__ == f.__annotations__
2716
2717 def test_always_use_up_to_date_copyreg(self):
2718 # test that updates of copyreg.dispatch_table are taken in account by

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected