From: Yurii Karabas <1998uriyyo@gmail.com> Date: Sun, 20 Oct 2019 14:52:07 +0000 (+0300) Subject: Set correct return statement for `is_type_comment` function (#929) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/4b5852e44ac9d2d2aa10fbbfa66a5f02421e7768?hp=4bcae4cf839aeba828bcdc4764369ae790f81d0d Set correct return statement for `is_type_comment` function (#929) --- 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 )