Skip to content

Commit

Permalink
chg: Remove bandit B101 ignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrtz authored Aug 12, 2023
1 parent 7e7eff4 commit c797026
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions bandit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,3 @@ exclude_dirs:
targets:
- textology
- examples

skips:
- B101
2 changes: 0 additions & 2 deletions textology/widgets/_list_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,11 @@ def watch_index(self, old_index: int, new_index: int) -> None:
"""
if self._is_valid_index(old_index):
old_child = self._nodes[old_index]
assert isinstance(old_child, ListItem)
old_child.highlighted = False

new_child: Widget | None
if self._is_valid_index(new_index):
new_child = self._nodes[new_index]
assert isinstance(new_child, ListItem)
if isinstance(new_child, ListItemHeader):
if new_index == 0:
if old_index == 0 or not self._nodes:
Expand Down

0 comments on commit c797026

Please sign in to comment.