Set correct return statement for is_type_comment
function (#929)
This commit is contained in:
parent
4bcae4cf83
commit
4b5852e44a
2
black.py
2
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
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user