MCPcopy Create free account
hub / github.com/pathwaycom/pathway / get_serializer

Function get_serializer

python/pathway/tests/test_py_object_wrapper.py:200–213  ·  view source on GitHub ↗
(serialization: str)

Source from the content-addressed store, hash-verified

198
199
200def get_serializer(serialization: str) -> api.PyObjectWrapperSerializerProtocol | None:
201 match serialization:
202 case "default":
203 return None
204 case "pickle":
205 return pickle # type: ignore[return-value]
206 case "SimpleStrSerializer":
207 return SimpleStrSerializer
208 case "dill":
209 return dill
210 case "cloudpickle":
211 return cloudpickle
212 case _:
213 raise ValueError(f"Incorrect serialization arg: {serialization}.")
214
215
216@pytest.mark.flaky(reruns=2)

Callers 2

targetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected