INNER CODE UNIT · Python

_has_skip_comment

PyCQA/isort · isort/core.py:60

def _has_skip_comment(import_statement: str) -> bool:
    """Return whether an import statement carries a per-line ``isort: skip`` directive."""
    return any(comment in import_statement for comment in SKIP_IMPORT_COMMENTS)


class _FloatToTopResult(NamedTuple):
    input_stream: TextIO
    verbose_output: list[str]
    made_changes: bool


def _float_to_top(
    input_stream: TextIO,
    add_imports: list[str],
    config: Config,
    extension: str,
) -> _FloatToTopResult:
    new_input = ""

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…