Skip to content

Commit 2901f69

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mypy/nodes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,10 +1829,14 @@ class IfStmt(Statement):
18291829

18301830
expr: list[Expression]
18311831
body: list[Block]
1832-
else_body: Block | None # If there is actually no else statement, semantic analysis may nevertheless
1832+
else_body: (
1833+
Block | None
1834+
) # If there is actually no else statement, semantic analysis may nevertheless
18331835
# create an empty else block and mark it permanently as unreachable to tell
18341836
# that the control flow must always go through the if block.
1835-
unreachable_else: bool # Type checking may modify this flag repeatedly to indicate whether an actually
1837+
unreachable_else: (
1838+
bool # Type checking may modify this flag repeatedly to indicate whether an actually
1839+
)
18361840
# available or unavailable else block is unreachable, considering the currently
18371841
# available type information.
18381842

0 commit comments

Comments
 (0)