Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archinstall/lib/menu/list_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(
):
"""
:param prompt: Text which will appear at the header
type param: string | DeferredTranslation
type param: string

:param entries: list/dict of option to be shown / manipulated
type param: list
Expand Down
16 changes: 0 additions & 16 deletions archinstall/lib/translationhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,6 @@ class _DeferredTranslation:
def __init__(self, message: str):
self.message = message

def __len__(self) -> int:
return len(self.message)

@override
def __str__(self) -> str:
if builtins._ is _DeferredTranslation: # type: ignore[attr-defined]
Expand All @@ -175,19 +172,6 @@ def __str__(self) -> str:
# Language.activate() is called
return builtins._(self.message) # type: ignore[attr-defined]

def __lt__(self, other) -> bool:
return self.message < other

def __gt__(self, other) -> bool:
return self.message > other

def __add__(self, other) -> _DeferredTranslation:
if isinstance(other, str):
other = _DeferredTranslation(other)

concat = self.message + other.message
return _DeferredTranslation(concat)


def tr(message: str) -> str:
return str(_DeferredTranslation(message))
Expand Down