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

Function _pymap

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

Source from the content-addressed store, hash-verified

300
301@st.composite
302def _pymap(draw, key_type, value_type, size, nullable=True):
303 length = draw(size)
304 keys = draw(_pylist(key_type, size=length, nullable=False))
305 values = draw(_pylist(value_type, size=length, nullable=nullable))
306 return list(zip(keys, values))
307
308
309@st.composite

Callers 1

arraysFunction · 0.85

Calls 2

_pylistFunction · 0.85
listFunction · 0.85

Tested by

no test coverage detected