diff options
author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | 2021-10-01 08:04:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-01 08:04:43 -0500 |
commit | 7046878584b5e7fb08ad3317505285957eb0cbc1 (patch) | |
tree | 0115f6beae10b55a6988e8698e6f05b0aa7fc0cc /pycodestyle.py | |
parent | bf0c5bc6e61cf728047b2fe43bd8e993581ff16c (diff) | |
parent | d19b47a307fd45f2e2d2994f105a3c69d66caf82 (diff) | |
download | pep8-7046878584b5e7fb08ad3317505285957eb0cbc1.tar.gz |
Merge pull request #1019 from PyCQA/issue/1018
Allow __all__ to be typed
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*:") |