From 3fbdeedfa71b32276b14df05be3b3ed98eb47ef7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Aug 2025 12:09:01 +0530 Subject: [PATCH] Also make deserialization robust against bools --- kitty/layout/tall.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kitty/layout/tall.py b/kitty/layout/tall.py index 9f595d532..3caefca89 100644 --- a/kitty/layout/tall.py +++ b/kitty/layout/tall.py @@ -76,7 +76,8 @@ class TallLayoutOpts(LayoutOpts): self.bias = int(data.get('bias', 50)) except Exception: self.bias = 50 - self.mirrored = to_bool(data.get('mirrored', 'false')) + rv: bool | str = data.get('mirrored', 'false') + self.mirrored = to_bool(rv) if isinstance(rv, str) else bool(rv) def serialized(self) -> dict[str, Any]: return {'full_size': self.full_size, 'bias': self.bias, 'mirrored': 'y' if self.mirrored else 'n'}