Set correct return statement for is_type_comment function (#929)

This commit is contained in:
Yurii Karabas 2019-10-20 17:52:07 +03:00 committed by Łukasz Langa
parent 4bcae4cf83
commit 4b5852e44a

View File

@ -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
)