From 4b5852e44ac9d2d2aa10fbbfa66a5f02421e7768 Mon Sep 17 00:00:00 2001 From: Yurii Karabas <1998uriyyo@gmail.com> Date: Sun, 20 Oct 2019 17:52:07 +0300 Subject: [PATCH] Set correct return statement for `is_type_comment` function (#929) --- black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/black.py b/black.py index 65545e9..d1e87a9 100644 --- a/black.py +++ b/black.py @@ -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 ) -- 2.39.5