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

Method test_class_annotations

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

Source from the content-addressed store, hash-verified

2683 assert worker.run(check_annotations, obj, type_, "type_") == "ok"
2684
2685 def test_class_annotations(self):
2686 class C:
2687 pass
2688
2689 C.__annotations__ = {"a": int}
2690
2691 C1 = pickle_depickle(C, protocol=self.protocol)
2692 assert C1.__annotations__ == C.__annotations__
2693
2694 def test_class_annotations_abstractclass(self):
2695 # see https://github.com/cloudpipe/cloudpickle/issues/572

Callers

nothing calls this directly

Calls 1

pickle_depickleFunction · 0.85

Tested by

no test coverage detected