MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / tuple_cast

Function tuple_cast

register/misc.py:113–117  ·  view source on GitHub ↗

Cast elements of an iterable object into a tuple of some type. A partial method of :func:`iter_cast`.

(inputs, dst_type)

Source from the content-addressed store, hash-verified

111
112
113def tuple_cast(inputs, dst_type):
114 """Cast elements of an iterable object into a tuple of some type.
115 A partial method of :func:`iter_cast`.
116 """
117 return iter_cast(inputs, dst_type, return_type=tuple)
118
119
120def is_seq_of(seq, expected_type, seq_type=None):

Callers

nothing calls this directly

Calls 1

iter_castFunction · 0.85

Tested by

no test coverage detected