INNER CODE UNIT · Python
code_sorting_indent
PyCQA/isort · isort/core.py:315
code_sorting_indent = line[: -len(line.lstrip())]
not_imports = True
elif (
config.sort_reexports
and stripped_line.startswith("__all__")
and not _has_skip_comment(stripped_line)
):
_, rhs = stripped_line.split("=", 1)
code_sorting = LITERAL_TYPE_MAPPING.get(rhs.lstrip()[0], "tuple")
code_sorting_indent = line[: -len(line.lstrip())]
not_imports = True
code_sorting_section += line
reexport_rollback = len(line)
is_reexport = True
elif code_sorting:
if not stripped_line:
sorted_code = textwrap.indent(
isort.literal.assignment(