Skip to content

Commit b34b796

Browse files
committed
Added support for PEP 570 (#867)
1 parent 3b258c3 commit b34b796

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pycodestyle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,10 @@ def missing_whitespace_around_operator(logical_line, tokens):
855855
# Tolerate the "<>" operator, even if running Python 3
856856
# Deal with Python 3's annotated return value "->"
857857
pass
858+
elif prev_text == '/' and text == ',':
859+
# Tolerate the "/" operator in function definition
860+
# For more info see PEP570source
861+
pass
858862
else:
859863
if need_space is True or need_space[1]:
860864
# A needed trailing space was not found

0 commit comments

Comments
 (0)