Skip to content

Commit 2796890

Browse files
authored
Merge pull request #897 from sobolevn/issue-768
Adds matmul operator support, fixes #768
2 parents d69c15e + ad86a1b commit 2796890

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def lru_cache(maxsize=128): # noqa as it's a fake implementation.
113113
SINGLETONS = frozenset(['False', 'None', 'True'])
114114
KEYWORDS = frozenset(keyword.kwlist + ['print', 'async']) - SINGLETONS
115115
UNARY_OPERATORS = frozenset(['>>', '**', '*', '+', '-'])
116-
ARITHMETIC_OP = frozenset(['**', '*', '/', '//', '+', '-'])
116+
ARITHMETIC_OP = frozenset(['**', '*', '/', '//', '+', '-', '@'])
117117
WS_OPTIONAL_OPERATORS = ARITHMETIC_OP.union(['^', '&', '|', '<<', '>>', '%'])
118118
# Warn for -> function annotation operator in py3.5+ (issue 803)
119119
FUNCTION_RETURN_ANNOTATION_OP = ['->'] if sys.version_info >= (3, 5) else []

testsuite/E22.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
1is 1
8585
#: E225
8686
1in []
87+
#: E225
88+
i = 1 @2
89+
#: E225
90+
i = 1@ 2
8791
#: E225 E226
8892
i=i+1
8993
#: E225 E226
@@ -150,6 +154,7 @@ def halves(n):
150154
print >>sys.stderr, "x is out of range."
151155
print >> sys.stdout, "x is an integer."
152156
x = x / 2 - 1
157+
x = 1 @ 2
153158

154159
if alpha[:-i]:
155160
*a, b = (1, 2, 3)

0 commit comments

Comments
 (0)