MCPcopy Index your code
hub / github.com/Textualize/textual / encode_tuple

Function encode_tuple

src/textual/_binary_encode.py:111–121  ·  view source on GitHub ↗

Encode a tuple value. Args: datum: The tuple value to encode. Returns: The encoded bytes.

(datum: tuple)

Source from the content-addressed store, hash-verified

109 return b"l%se" % b"".join(encode(element) for element in datum)
110
111 def encode_tuple(datum: tuple) -> bytes:
112 """
113 Encode a tuple value.
114
115 Args:
116 datum: The tuple value to encode.
117
118 Returns:
119 The encoded bytes.
120 """
121 return b"t%se" % b"".join(encode(element) for element in datum)
122
123 def encode_dict(datum: dict) -> bytes:
124 """

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…