summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita S <nikitaserba@icloud.com>2019-07-02 01:59:10 +0300
committerNikita S <nikitaserba@icloud.com>2019-07-02 01:59:10 +0300
commitb34b79664ccec08ea419aa44037c1b0d2815611b (patch)
tree4f879737df0f4d3f074d5bae6e706ec1f58ba630
parent3b258c375c6392b1475a487c0961cf7dbe03f838 (diff)
downloadpep8-b34b79664ccec08ea419aa44037c1b0d2815611b.tar.gz
Added support for PEP 570 (#867)
-rwxr-xr-xpycodestyle.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pycodestyle.py b/pycodestyle.py
index ec6b894..0c043fc 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -855,6 +855,10 @@ def missing_whitespace_around_operator(logical_line, tokens):
# Tolerate the "<>" operator, even if running Python 3
# Deal with Python 3's annotated return value "->"
pass
+ elif prev_text == '/' and text == ',':
+ # Tolerate the "/" operator in function definition
+ # For more info see PEP570source
+ pass
else:
if need_space is True or need_space[1]:
# A needed trailing space was not found