Commit 4b5852e4 authored by Yurii Karabas's avatar Yurii Karabas Committed by Łukasz Langa
Browse files

Set correct return statement for `is_type_comment` function (#929)

parent 4bcae4cf
Loading
Loading
Loading
Loading
+1 −1
Changes for black.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -2777,7 +2777,7 @@ def is_type_comment(leaf: Leaf, suffix: str = "") -> bool:
    Only returns true for type comments for now."""
    t = leaf.type
    v = leaf.value
    return t in {token.COMMENT, t == STANDALONE_COMMENT} and v.startswith(
    return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith(
        "# type:" + suffix
    )