fix CI (#1078)
This commit is contained in:
parent
4b5852e44a
commit
a73d25883a
4
black.py
4
black.py
@ -2777,9 +2777,7 @@ def is_type_comment(leaf: Leaf, suffix: str = "") -> bool:
|
|||||||
Only returns true for type comments for now."""
|
Only returns true for type comments for now."""
|
||||||
t = leaf.type
|
t = leaf.type
|
||||||
v = leaf.value
|
v = leaf.value
|
||||||
return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith(
|
return t in {token.COMMENT, STANDALONE_COMMENT} and v.startswith("# type:" + suffix)
|
||||||
"# type:" + suffix
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def normalize_prefix(leaf: Leaf, *, inside_brackets: bool) -> None:
|
def normalize_prefix(leaf: Leaf, *, inside_brackets: bool) -> None:
|
||||||
|
@ -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 ###
|
### SECTION COMMENT ###
|
||||||
|
Loading…
Reference in New Issue
Block a user