Ignore typing error around Node/Leaf
This commit is contained in:
parent
6316e293ac
commit
7bd6f3cb2f
2
black.py
2
black.py
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user