Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
svartkanin committed Nov 7, 2024
1 parent 9fd2567 commit 731c94c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion archinstall/lib/models/mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def latency(self) -> float | None:
return self._latency

@field_validator('score', mode='before')
def validate_score(cls, value: int) -> Optional[int]:
def validate_score(self, value: int) -> Optional[int]:
if value is not None:
value = round(value)
debug(f" score: {value}")
Expand Down
4 changes: 2 additions & 2 deletions archinstall/tui/curses_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,8 @@ def run(component: AbstractCurses) -> Result:
return Tui.t()._main_loop(component)

def _sig_win_resize(self, signum: int, frame) -> None:
if hasattr(self, '_component') and self._component is not None:
self._component.resize_win()
if hasattr(self, '_component') and self._component is not None: # pylint: disable=E1101
self._component.resize_win() # pylint: disable=E1101

def _main_loop(self, component: AbstractCurses) -> Result:
self._screen.refresh()
Expand Down
1 change: 0 additions & 1 deletion archinstall/tui/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ class PreviewStyle(Enum):
class Chars:
Horizontal = "─"
Vertical = "│"
Upper_left = "╭"
Upper_left = "┌"
Upper_right = "┐"
Lower_left = "└"
Expand Down

0 comments on commit 731c94c

Please sign in to comment.