From 1ec2470da7a040e0d7e3900c97305731826ab101 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Tue, 29 Jan 2019 16:46:19 -0500 Subject: [PATCH] chore: Fix noqa comment (#684) Omitting the colon makes Flake8 ignore all errors, rather than the specific code. --- black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/black.py b/black.py index 3269322..c4b9132 100644 --- a/black.py +++ b/black.py @@ -1606,7 +1606,7 @@ BRACKETS = OPENING_BRACKETS | CLOSING_BRACKETS ALWAYS_NO_SPACE = CLOSING_BRACKETS | {token.COMMA, STANDALONE_COMMENT} -def whitespace(leaf: Leaf, *, complex_subscript: bool) -> str: # noqa C901 +def whitespace(leaf: Leaf, *, complex_subscript: bool) -> str: # noqa: C901 """Return whitespace prefix if needed for the given `leaf`. `complex_subscript` signals whether the given leaf is part of a subscription -- 2.39.5