mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 08:01:58 +02:00
Use cast() instead of type: ignore
This commit is contained in:
@@ -754,7 +754,8 @@ def active_tab_title_template(x: str) -> str | None:
|
||||
|
||||
|
||||
def text_fg_override_threshold(x: str) -> tuple[float, Literal['%', 'ratio']]:
|
||||
return number_with_unit(x, '%', 'ratio') # type: ignore
|
||||
val, unit = number_with_unit(x, '%', 'ratio')
|
||||
return val, cast(Literal['%', 'ratio'], unit)
|
||||
|
||||
|
||||
ClearOn = Literal['next', 'focus']
|
||||
|
||||
Reference in New Issue
Block a user