mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-18 09:55:59 +08:00
Add _write method to flake8.formatting.BaseFormatter (#12312)
It is very useful for real-life custom formatters. Example:470d811746/wemake_python_styleguide/formatter.py (L92-L96)Definition:65a38c42a7/src/flake8/formatting/base.py (L173-L178)
This commit is contained in:
@@ -21,4 +21,5 @@ class BaseFormatter:
|
||||
def show_benchmarks(self, benchmarks: list[tuple[str, float]]) -> None: ...
|
||||
def show_source(self, error: Violation) -> str | None: ...
|
||||
def write(self, line: str | None, source: str | None) -> None: ...
|
||||
def _write(self, output: str) -> None: ...
|
||||
def stop(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user