diff options
author | Anthony Sottile <asottile@umich.edu> | 2019-03-01 08:22:55 -0800 |
---|---|---|
committer | Anthony Sottile <asottile@umich.edu> | 2019-03-01 08:22:55 -0800 |
commit | 0327e55e756e20ade468e67992f9f43da14aabb4 (patch) | |
tree | def165563f5b1985f7bec9522250fc97794d85d5 /pycodestyle.py | |
parent | d1e29861597f22d01e0f528aaccdb744d5bade81 (diff) | |
download | pep8-0327e55e756e20ade468e67992f9f43da14aabb4.tar.gz |
Fix E721 false positive
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-x | pycodestyle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pycodestyle.py b/pycodestyle.py index 02a717a..cad68ea 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -139,7 +139,7 @@ WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?: |\t)') COMPARE_SINGLETON_REGEX = re.compile(r'(\bNone|\bFalse|\bTrue)?\s*([=!]=)' r'\s*(?(1)|(None|False|True))\b') COMPARE_NEGATIVE_REGEX = re.compile(r'\b(not)\s+[^][)(}{ ]+\s+(in|is)\s') -COMPARE_TYPE_REGEX = re.compile(r'(?:[=!]=|is(?:\s+not)?)\s*type(?:s.\w+Type' +COMPARE_TYPE_REGEX = re.compile(r'(?:[=!]=|is(?:\s+not)?)\s+type(?:s.\w+Type' r'|\s*\(\s*([^)]*[^ )])\s*\))') KEYWORD_REGEX = re.compile(r'(\s*)\b(?:%s)\b(\s*)' % r'|'.join(KEYWORDS)) OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:[-+*/|!<=>%&^]+)(\s*)') |