From cb1b1535267ac4dd43cfbce08acdc41b32442a52 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 6 Sep 2026 06:47:26 +0530 Subject: [PATCH] ... --- kitty/conf/generate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kitty/conf/generate.py b/kitty/conf/generate.py index 6b4da5d0c..81732b994 100644 --- a/kitty/conf/generate.py +++ b/kitty/conf/generate.py @@ -56,8 +56,7 @@ def generate_class(defn: Definition, loc: str) -> tuple[str, str]: def option_type_data(option: Option | MultiOption) -> tuple[Callable[[Any], Any], str]: func = option.parser_func if func.__module__ == 'builtins': - assert isinstance(func, types.FunctionType) - return func, func.__name__ + return getattr(func, '__name__') th = get_type_hints(func) rettype = th['return'] typ = option_type_as_str(rettype)