MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / id_formatter

Function id_formatter

tests/helpers.py:83–87  ·  view source on GitHub ↗

Return a function that formats the value given to it with the given label.

(label: str)

Source from the content-addressed store, hash-verified

81
82
83def id_formatter(label: str):
84 """
85 Return a function that formats the value given to it with the given label.
86 """
87 return lambda value: format_with_label(label, value)
88
89
90DTYPE_NAMES = {

Callers

nothing calls this directly

Calls 1

format_with_labelFunction · 0.85

Tested by

no test coverage detected