Skip to content

Commit ec567c9

Browse files
committed
types(test_builder) Fix typing issues
tests/workspace/test_builder.py:721: error: Argument "start" to "enumerate" has incompatible type "Union[str, int, None]"; expected "int" [arg-type] tests/workspace/test_builder.py:722: error: Argument 1 to "int" has incompatible type "Optional[str]"; expected "Union[str, Buffer, SupportsInt, SupportsIndex, SupportsTrunc]" [arg-type] tests/workspace/test_builder.py:726: error: Unsupported operand types for - ("int" and "str") [operator] tests/workspace/test_builder.py:726: error: Unsupported operand types for - ("int" and "None") [operator] tests/workspace/test_builder.py:726: note: Right operand is of type "Union[str, int, None]
1 parent a7d2093 commit ec567c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/workspace/test_builder.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,10 @@ def test_pane_order(session: Session) -> None:
718718

719719
for w in session.windows:
720720
pane_base_index = w.show_window_option("pane-base-index", g=True)
721+
assert pane_base_index is not None
722+
pane_base_index = int(pane_base_index)
721723
for p_index, p in enumerate(w.panes, start=pane_base_index):
724+
assert p.index is not None
722725
assert int(p_index) == int(p.index)
723726

724727
# pane-base-index start at base-index, pane_paths always start

0 commit comments

Comments
 (0)