mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
...
This commit is contained in:
parent
f3fdc21850
commit
cb1b153526
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue