Skip to content

Commit 5955210

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

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

mypy/nodes.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3240,8 +3240,14 @@ def enum_members(self) -> list[str]:
32403240
and name not in EXCLUDED_ENUM_ATTRIBUTES
32413241
and not name.startswith("__")
32423242
and sym.node.has_explicit_value
3243-
and not (isinstance(typ := mypy.types.get_proper_type(sym.node.type), mypy.types.Instance) and typ.type.fullname == "enum.nonmember")
3244-
) or (
3243+
and not (
3244+
isinstance(
3245+
typ := mypy.types.get_proper_type(sym.node.type), mypy.types.Instance
3246+
)
3247+
and typ.type.fullname == "enum.nonmember"
3248+
)
3249+
)
3250+
or (
32453251
isinstance(sym.node, Decorator)
32463252
and any(
32473253
dec.fullname == "enum.member"

0 commit comments

Comments
 (0)