mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-18 18:29:41 +00:00
Run autoformat after gen/config
This commit is contained in:
parent
f90c26f1d0
commit
df2986feb3
2 changed files with 2 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ def main(args: list[str] = sys.argv) -> None:
|
|||
definition,
|
||||
f'\nnullable_colors = frozenset({{\n {nc}\n}})\n\nspecial_colors = frozenset({{\n {sc}\n}})\n\nall_colors = frozenset({{\n {ac}\n}})\n',
|
||||
)
|
||||
os.execl(os.path.abspath('autoformat'), 'autoformat')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
|
|
@ -56,7 +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':
|
||||
return getattr(func, '__name__')
|
||||
return func, 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