MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / get_indent

Function get_indent

diffusers/utils/custom_init_isort.py:59–62  ·  view source on GitHub ↗

Returns the indent in given line (as string).

(line: str)

Source from the content-addressed store, hash-verified

57
58
59def get_indent(line: str) -> str:
60 """Returns the indent in given line (as string)."""
61 search = _re_indent.search(line)
62 return "" if search is None else search.groups()[0]
63
64
65def split_code_in_indented_blocks(

Callers 3

sort_objects_in_importFunction · 0.70
sort_importsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected