INNER CODE UNIT · Python

import_statement

PyCQA/isort · isort/core.py:457

                                    import_statement = indent + import_statement.lstrip()
                                else:
                                    indent = new_indent
                        import_section += import_statement
                else:
                    not_imports = True

        if not_imports:
            above_import_section: str = ""
            if not was_in_quote and config.lines_before_imports > -1:
                if line.strip() == "" and not end_of_file:
                    lines_before += line
                    continue
                if not import_section:
                    output_stream.write("".join(lines_before))
                else:
                    above_import_section = "".join(lines_before)
                lines_before = []

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…