Ignore typing error around Node/Leaf

This commit is contained in:
Łukasz Langa 2018-03-22 23:22:46 -07:00
parent 6316e293ac
commit 7bd6f3cb2f

View File

@ -922,7 +922,7 @@ def whitespace(leaf: Leaf) -> str: # noqa C901
and prevp.parent.type == syms.shift_expr
and prevp.prev_sibling
and prevp.prev_sibling.type == token.NAME
and prevp.prev_sibling.value == 'print'
and prevp.prev_sibling.value == 'print' # type: ignore
):
# Python 2 print chevron
return NO