MCPcopy Create free account
hub / github.com/ScrapeGraphAI/toonify / get_indent

Function get_indent

toon/utils.py:206–217  ·  view source on GitHub ↗

Get indentation string for a given level. Args: level: Indentation level indent_size: Number of spaces per level Returns: Indentation string

(level: int, indent_size: int = 2)

Source from the content-addressed store, hash-verified

204
205
206def get_indent(level: int, indent_size: int = 2) -> str:
207 """
208 Get indentation string for a given level.
209
210 Args:
211 level: Indentation level
212 indent_size: Number of spaces per level
213
214 Returns:
215 Indentation string
216 """
217 return SPACE * (level * indent_size)
218
219
220def parse_number(value: str) -> Any:

Callers 7

_encode_objectFunction · 0.85
_encode_array_with_keyFunction · 0.85
_encode_tabular_arrayFunction · 0.85
_encode_list_arrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…