Now the time for importing the kitty.config module has been halved, from 16ms from 32ms on my machine. Also, the new architecture will eventually allow for auto generating a bunch of python-to-C boilerplate code.
15 lines
333 B
Python
15 lines
333 B
Python
#!/usr/bin/env python
|
|
# vim:fileencoding=utf-8
|
|
# License: GPLv3 Copyright: 2020, Kovid Goyal <kovid at kovidgoyal.net>
|
|
|
|
|
|
class CMD:
|
|
pass
|
|
|
|
|
|
def generate_stub() -> None:
|
|
from kittens.tui.operations import as_type_stub
|
|
from kitty.conf.utils import save_type_stub
|
|
text = as_type_stub()
|
|
save_type_stub(text, __file__)
|