From d3133420ba33f44d1b298c050406818fe314ab3b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 26 Mar 2026 16:45:04 +0530 Subject: [PATCH] Micro-optimization --- kitty/options/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty/options/utils.py b/kitty/options/utils.py index be7a00230..17ee94cc2 100644 --- a/kitty/options/utils.py +++ b/kitty/options/utils.py @@ -1395,14 +1395,14 @@ key_map_option_converters['timeout'] = float def _convert_allow_fallback(val: str) -> tuple[KeyFallbackType, ...]: match val: - case '' | 'none': - return () case 'shifted,ascii': return (KeyFallbackType.shifted, KeyFallbackType.alternate) - case 'ascii,shifted': - return (KeyFallbackType.alternate, KeyFallbackType.shifted) case 'shifted': return (KeyFallbackType.shifted,) + case '' | 'none': + return () + case 'ascii,shifted': + return (KeyFallbackType.alternate, KeyFallbackType.shifted) case 'ascii': return (KeyFallbackType.alternate,) raise ValueError(f'allow_fallback values must be a subset of shifted, ascii, got: {val}')