|
107 | 107 | ARITHMETIC_OP = frozenset(['**', '*', '/', '//', '+', '-', '@'])
|
108 | 108 | WS_OPTIONAL_OPERATORS = ARITHMETIC_OP.union(['^', '&', '|', '<<', '>>', '%'])
|
109 | 109 | WS_NEEDED_OPERATORS = frozenset([
|
110 |
| - '**=', '*=', '/=', '//=', '+=', '-=', '!=', '<>', '<', '>', |
| 110 | + '**=', '*=', '/=', '//=', '+=', '-=', '!=', '<', '>', |
111 | 111 | '%=', '^=', '&=', '|=', '==', '<=', '>=', '<<=', '>>=', '=',
|
112 | 112 | 'and', 'in', 'is', 'or', '->', ':='])
|
113 | 113 | WHITESPACE = frozenset(' \t\xa0')
|
@@ -905,10 +905,6 @@ def missing_whitespace_around_operator(logical_line, tokens):
|
905 | 905 | yield (need_space[0],
|
906 | 906 | "E225 missing whitespace around operator")
|
907 | 907 | need_space = False
|
908 |
| - elif text == '>' and prev_text in ('<', '-'): |
909 |
| - # Tolerate the "<>" operator, even if running Python 3 |
910 |
| - # Deal with Python 3's annotated return value "->" |
911 |
| - pass |
912 | 908 | elif (
|
913 | 909 | # def f(a, /, b):
|
914 | 910 | # ^
|
|
0 commit comments