Skip to content

Commit 2f8cd67

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

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

mypy/nodes.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import mypy.strconv
1616
from mypy.options import Options
17-
from mypy.util import is_typeshed_file, short_type, is_sunder
17+
from mypy.util import is_sunder, is_typeshed_file, short_type
1818
from mypy.visitor import ExpressionVisitor, NodeVisitor, StatementVisitor
1919

2020
if TYPE_CHECKING:
@@ -3282,12 +3282,11 @@ def enum_members(self) -> list[str]:
32823282
continue # unannotated value not a member
32833283

32843284
typ = mypy.types.get_proper_type(sym.node.type)
3285-
if (
3286-
isinstance(typ, mypy.types.FunctionLike) # explicit `@member` is required
3287-
or (
3288-
isinstance(typ, mypy.types.Instance)
3289-
and typ.type.fullname == "enum.nonmember"
3290-
)
3285+
if isinstance(
3286+
typ, mypy.types.FunctionLike
3287+
) or ( # explicit `@member` is required
3288+
isinstance(typ, mypy.types.Instance)
3289+
and typ.type.fullname == "enum.nonmember"
32913290
):
32923291
continue # name is not a member
32933292

0 commit comments

Comments
 (0)