From c38f2878c852f0a392f6c755ef9504139183f17b Mon Sep 17 00:00:00 2001 From: Janos Wortmann Date: Tue, 31 Oct 2023 16:54:13 +0100 Subject: [PATCH] Lint --- plugin/documents.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/documents.py b/plugin/documents.py index 3f2a43c36..4d99f79fd 100644 --- a/plugin/documents.py +++ b/plugin/documents.py @@ -484,8 +484,10 @@ def _on_hover_gutter_async(self, point: int) -> None: diagnostics_with_config = [] # type: List[Tuple[ClientConfig, Diagnostic]] max_severity_level = min(userprefs().show_diagnostics_severity_level, DiagnosticSeverity.Information) for sb, diagnostics in self.diagnostics_intersecting_async(self.view.line(point))[0]: - diagnostics_with_config.extend((sb.session.config, diagnostic) for diagnostic in diagnostics - if diagnostic_severity(diagnostic) <= max_severity_level) + diagnostics_with_config.extend( + (sb.session.config, diagnostic) for diagnostic in diagnostics + if diagnostic_severity(diagnostic) <= max_severity_level + ) if diagnostics_with_config: diagnostics_with_config.sort(key=lambda d: diagnostic_severity(d[1])) content += '
'