diff options
author | Nikita S <nikitaserba@icloud.com> | 2019-07-02 01:59:10 +0300 |
---|---|---|
committer | Nikita S <nikitaserba@icloud.com> | 2019-07-02 01:59:10 +0300 |
commit | b34b79664ccec08ea419aa44037c1b0d2815611b (patch) | |
tree | 4f879737df0f4d3f074d5bae6e706ec1f58ba630 /pycodestyle.py | |
parent | 3b258c375c6392b1475a487c0961cf7dbe03f838 (diff) | |
download | pep8-b34b79664ccec08ea419aa44037c1b0d2815611b.tar.gz |
Added support for PEP 570 (#867)
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 4 |
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 |