Skip to content

Commit 0343f4b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1eeeeba commit 0343f4b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

mypy/checkmember.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,11 @@ def analyze_class_attribute_access(
11601160
if info.fallback_to_any or info.meta_fallback_to_any:
11611161
return apply_class_attr_hook(mx, hook, AnyType(TypeOfAny.special_form))
11621162
# For enum types, report missing member with fuzzy matching suggestions
1163-
if info.is_enum and info.enum_members and not (name.startswith("__") and name.endswith("__")):
1163+
if (
1164+
info.is_enum
1165+
and info.enum_members
1166+
and not (name.startswith("__") and name.endswith("__"))
1167+
):
11641168
return report_missing_attribute(mx.original_type, itype, name, mx)
11651169
return None
11661170

0 commit comments

Comments
 (0)