Blob Blame History Raw
From 99413d9fb7e255139a565ef2f975b4a5a4979dd4 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Fri, 14 Jul 2023 10:51:15 -0700
Subject: [PATCH] Adjust to pycodestyle missing_whitespace now taking `tokens`

This is a simple change but will require whatever the next
pycodestyle release is (2.10.1 or 2.11.0), because it's adapting
to https://github.com/PyCQA/pycodestyle/commit/6fddf73 , which
is not in a release yet.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
 src/flake8/plugins/pycodestyle.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/flake8/plugins/pycodestyle.py b/src/flake8/plugins/pycodestyle.py
index 7eb90e1..b2b90de 100644
--- a/src/flake8/plugins/pycodestyle.py
+++ b/src/flake8/plugins/pycodestyle.py
@@ -74,7 +74,7 @@ def pycodestyle_logical(
     yield from _imports_on_separate_lines(logical_line)
     yield from _indentation(logical_line, previous_logical, indent_char, indent_level, previous_indent_level, indent_size)  # noqa: E501
     yield from _maximum_doc_length(logical_line, max_doc_length, noqa, tokens)
-    yield from _missing_whitespace(logical_line)
+    yield from _missing_whitespace(logical_line, tokens)
     yield from _missing_whitespace_after_keyword(logical_line, tokens)
     yield from _missing_whitespace_around_operator(logical_line, tokens)
     yield from _module_imports_on_top_of_file(logical_line, indent_level, checker_state, noqa)  # noqa: E501
-- 
2.41.0