From: Ɓukasz Langa Date: Fri, 23 Mar 2018 06:22:46 +0000 (-0700) Subject: Ignore typing error around Node/Leaf X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/7bd6f3cb2ff11d385dbe433e2b03e9f7c94be33e?ds=sidebyside;hp=6316e293ac30a2837ec20eba289fd28a2a18cf89 Ignore typing error around Node/Leaf --- 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