MCPcopy Create free account
hub / github.com/apache/arrow / _pymap

Function _pymap

python/pyarrow/tests/strategies.py:283–287  ·  view source on GitHub ↗
(draw, key_type, value_type, size, nullable=True)

Source from the content-addressed store, hash-verified

281
282@st.composite
283def _pymap(draw, key_type, value_type, size, nullable=True):
284 length = draw(size)
285 keys = draw(_pylist(key_type, size=length, nullable=False))
286 values = draw(_pylist(value_type, size=length, nullable=nullable))
287 return list(zip(keys, values))
288
289
290@st.composite

Callers 1

arraysFunction · 0.85

Calls 2

_pylistFunction · 0.85
listFunction · 0.85

Tested by

no test coverage detected