File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1414
1515import mypy .strconv
1616from 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
1818from mypy .visitor import ExpressionVisitor , NodeVisitor , StatementVisitor
1919
2020if 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
You can’t perform that action at this time.
0 commit comments