Skip to content

Commit

Permalink
Fix mypy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
seandstewart committed Feb 25, 2021
1 parent 11874d9 commit fe2ff8b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions iambic/render/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: UTF-8 -*-
import enum
import textwrap
from typing import List, Dict, Tuple, Union, Type, Any, Iterable
from typing import List, Dict, Tuple, Union, Type, Any, Iterable, cast

import tabulate as _tabulate

Expand Down Expand Up @@ -121,10 +121,9 @@ def tabulate(
for act in play.body:
# Epilogues and Prologues can be shaped like Scenes or Acts.
# And can be top-level, like Acts.
children: ast.ActBodyT = (
act.body
if (isinstance(act, ast.Act) or act.as_act) # type: ignore
else (act,)
children: ast.ActBodyT = cast(
ast.ActBodyT,
(act.body if (isinstance(act, ast.Act) or act.as_act) else (act,)),
)
for scene in children:

Expand Down

0 comments on commit fe2ff8b

Please sign in to comment.