File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Bug fixes:
3636
3737* Don't crash if os.path.expanduser() throws an ImportError. (Issue #297)
3838
39- * Fix false positive E711/E712. (Issue #336)
39+ * Fix false positive E711/E712/E713 . (Issues #330 and #336)
4040
4141
42421.5.7 (2014-05-29)
Original file line number Diff line number Diff line change 108108WHITESPACE_AFTER_COMMA_REGEX = re .compile (r'[,;:]\s*(?: |\t)' )
109109COMPARE_SINGLETON_REGEX = re .compile (r'\b(None|False|True)?\s*([=!]=)'
110110 r'\s*(?(1)|(None|False|True))\b' )
111- COMPARE_NEGATIVE_REGEX = re .compile (r'\b(not)\s+[^[( { ]+\s+(in|is)\s' )
111+ COMPARE_NEGATIVE_REGEX = re .compile (r'\b(not)\s+[^][)(} { ]+\s+(in|is)\s' )
112112COMPARE_TYPE_REGEX = re .compile (r'(?:[=!]=|is(?:\s+not)?)\s*type(?:s.\w+Type'
113113 r'|\s*\(\s*([^)]*[^ )])\s*\))' )
114114KEYWORD_REGEX = re .compile (r'(\s*)\b(?:%s)\b(\s*)' % r'|' .join (KEYWORDS ))
Original file line number Diff line number Diff line change 4646#: E714
4747if not X .B is Y :
4848 pass
49+
50+ #
4951#: Okay
5052if x not in y :
5153 pass
54+
5255if not (X in Y or X is Z ):
5356 pass
57+
5458if not (X in Y ):
5559 pass
60+
5661if x is not y :
5762 pass
5863
5964if TrueElement .get_element (True ) == TrueElement .get_element (False ):
6065 pass
66+
6167if (True ) == TrueElement or x == TrueElement :
6268 pass
69+
70+ assert (not foo ) in bar
71+ assert {'x' : not foo } in bar
72+ assert [42 , not foo ] in bar
6373#:
You can’t perform that action at this time.
0 commit comments