Skip to content

Commit 9c97fe2

Browse files
committed
Use Self for remaining occurrences
1 parent e1d9935 commit 9c97fe2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

archinstall/lib/models/mirrors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def validate_score(cls, value: float) -> int | None:
104104
return value
105105

106106
@model_validator(mode='after')
107-
def debug_output(self) -> 'MirrorStatusEntryV3':
107+
def debug_output(self) -> Self:
108108
from ..args import arch_config_handler
109109

110110
self._hostname, *port = urllib.parse.urlparse(self.url).netloc.split(':', 1)

archinstall/tui/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ class MenuKeys(Enum):
4949
SCROLL_DOWN = frozenset({338})
5050

5151
@classmethod
52-
def from_ord(cls, key: int) -> list['MenuKeys']:
53-
matches = []
52+
def from_ord(cls, key: int) -> list[Self]:
53+
matches: list[Self] = []
5454

55-
for group in MenuKeys:
55+
for group in cls:
5656
if key in group.value:
5757
matches.append(group)
5858

0 commit comments

Comments
 (0)