Loading black.py +1 −3 Changes for black.py: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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: Loading tests/data/comments2.py +1 −1 Changes for tests/data/comments2.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -310,7 +310,7 @@ def inline_comments_in_brackets_ruin_everything(): ) 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 ### Loading Loading
black.py +1 −3 Changes for black.py: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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: Loading
tests/data/comments2.py +1 −1 Changes for tests/data/comments2.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -310,7 +310,7 @@ def inline_comments_in_brackets_ruin_everything(): ) 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 ### Loading