From: Jelle Zijlstra Date: Sun, 20 Oct 2019 15:35:57 +0000 (-0700) Subject: fix CI (#1078) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a73d25883aaaa3fa3a10ea2ddfcb70ac1efd448e fix CI (#1078) --- diff --git a/black.py b/black.py index d1e87a9..3842be9 100644 --- a/black.py +++ b/black.py @@ -2777,9 +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, STANDALONE_COMMENT} and v.startswith( - "# type:" + suffix - ) + return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith("# type:" + suffix) def normalize_prefix(leaf: Leaf, *, inside_brackets: bool) -> None: diff --git a/tests/data/comments2.py b/tests/data/comments2.py index 489661e..f4a30b8 100644 --- a/tests/data/comments2.py +++ b/tests/data/comments2.py @@ -310,7 +310,7 @@ short ) -CONFIG_FILES = [CONFIG_FILE] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final +CONFIG_FILES = [CONFIG_FILE,] + SHARED_CONFIG_FILES + USER_CONFIG_FILES # type: Final ####################### ### SECTION COMMENT ###