X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/4bcae4cf839aeba828bcdc4764369ae790f81d0d..4b5852e44ac9d2d2aa10fbbfa66a5f02421e7768:/black.py 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 )