From 7bd6f3cb2ff11d385dbe433e2b03e9f7c94be33e Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Langa?= Date: Thu, 22 Mar 2018 23:22:46 -0700 Subject: [PATCH] Ignore typing error around Node/Leaf --- black.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/black.py b/black.py index 7935cdc..e39cf7d 100644 --- a/black.py +++ b/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 -- 2.39.5