File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,8 @@ def lru_cache(maxsize=128): # noqa as it's a fake implementation.
140
140
WHITESPACE_AFTER_COMMA_REGEX = re .compile (r'[,;:]\s*(?: |\t)' )
141
141
COMPARE_SINGLETON_REGEX = re .compile (r'(\bNone|\bFalse|\bTrue)?\s*([=!]=)'
142
142
r'\s*(?(1)|(None|False|True))\b' )
143
- COMPARE_NEGATIVE_REGEX = re .compile (r'\b(not)\s+[^][)(}{ ]+\s+(in|is) '
144
- r'\s+(?!not\s) ' )
143
+ COMPARE_NEGATIVE_REGEX = re .compile (r'\b(?<!is\s)( not)\s+[^][)(}{ ]+\s+'
144
+ r'(in|is)\s ' )
145
145
COMPARE_TYPE_REGEX = re .compile (r'(?:[=!]=|is(?:\s+not)?)\s+type(?:s.\w+Type'
146
146
r'|\s*\(\s*([^)]*[^ )])\s*\))' )
147
147
KEYWORD_REGEX = re .compile (r'(\s*)\b(?:%s)\b(\s*)' % r'|' .join (KEYWORDS ))
Original file line number Diff line number Diff line change 67
67
#: E714
68
68
if not X is Y is not Z :
69
69
pass
70
+ #: E714
71
+ if not X is not Y :
72
+ pass
70
73
71
74
#
72
75
#: Okay
You can’t perform that action at this time.
0 commit comments