diff options
author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2021-09-30 06:35:53 -0500 |
---|---|---|
committer | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2021-10-01 05:55:18 -0500 |
commit | d19b47a307fd45f2e2d2994f105a3c69d66caf82 (patch) | |
tree | 0115f6beae10b55a6988e8698e6f05b0aa7fc0cc /pycodestyle.py | |
parent | bf0c5bc6e61cf728047b2fe43bd8e993581ff16c (diff) | |
download | pep8-d19b47a307fd45f2e2d2994f105a3c69d66caf82.tar.gz |
Allow __all__ to be typedissue/1018
Closes gh-1018
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 68d31d4..1d98dce 100755 --- a/pycodestyle.py +++ b/pycodestyle.py @@ -169,7 +169,7 @@ STARTSWITH_INDENT_STATEMENT_REGEX = re.compile( 'while', ))) ) -DUNDER_REGEX = re.compile(r'^__([^\s]+)__ = ') +DUNDER_REGEX = re.compile(r"^__([^\s]+)__(?::\s*[a-zA-Z.0-9_\[\]\"]+)? = ") MATCH_CASE_REGEX = re.compile(r'^\s*\b(?:match|case)(\s*)(?=.*\:)') BLANK_EXCEPT_REGEX = re.compile(r"except\s*:") |