Commit 1ec2470d authored by Jimmy Jia's avatar Jimmy Jia Committed by Jelle Zijlstra
Browse files

chore: Fix noqa comment (#684)

Omitting the colon makes Flake8 ignore all errors, rather than the specific code.
parent 4d310723
Loading
Loading
Loading
Loading
+1 −1
Changes for black.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1606,7 +1606,7 @@ def __attrs_post_init__(self) -> None:
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