summaryrefslogtreecommitdiff
path: root/pycodestyle.py
diff options
context:
space:
mode:
Diffstat (limited to 'pycodestyle.py')
-rwxr-xr-xpycodestyle.py2
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*:")