kracekumar · GitHub

Merged

Merged

Conversation

@kracekumar kracekumar changed the title [WIP - Do Not Merge]: Add the version to get ty working [WIP - Do Not Merge]: Add ty type checking

Dec 19, 2025

kracekumar


# map Pygments tokens (ptk 1.0) to class names (ptk 2.0).
TOKEN_TO_PROMPT_STYLE: dict[Token, str] = {
TOKEN_TO_PROMPT_STYLE: dict[_TokenType, str] = {
from litecli import __file__ as package_root

package_root = os.path.dirname(package_root)
package_root = os.path.dirname(str(package_root))

try:
from sqlean import OperationalError, sqlite_version
from sqlean import OperationalError, sqlite_version # ty: ignore[unresolved-import]
"all_punctuations": re.compile(r"([^\s]+)$"),
}

LAST_WORD_INCLUDE_TYPE = Literal["alphanum_underscore", "many_punctuations", "most_punctuations", "all_punctuations"]
write_once,
write_pipe_once,
close_tee,
)
self.config = config

def list(self) -> list[str]:
def list(self) -> builtins.list[str]:
fuzzy: bool = True,
casing: str | None = None,
punctuations: str = "most_punctuations",
punctuations: LAST_WORD_INCLUDE_TYPE = "most_punctuations",

@kracekumar kracekumar changed the title [WIP - Do Not Merge]: Add ty type checking Migrate typechecking to ty

Dec 21, 2025

kracekumar

callbacks = [callbacks]
callbacks_list: list[Callable] = [callbacks]
else:
callbacks_list = list(cast(list[Callable], callbacks))
from .sqlcompleter import SQLCompleter
from .sqlexecute import SQLExecute

click.disable_unicode_literals_warning = True
write_once,
write_pipe_once,
close_tee,
)
style = style_factory("default", cli_style)

assert isinstance(style(), Style)
assert isinstance(style, Style)
(".import ./data.csv ", 2),
(".import ./data.csv t", 2),
(".import ./data.csv `t", 2),
('.import ./data.csv "t', 2),
("598244", "6 days 22 hours 10 min 44 sec"),
("522600", "6 days 1 hour 10 min 0 sec"),
]:
assert human_readable_text == format_uptime(seconds)
return ["test"]

class PromptBuffer:
class PromptBuffer(PromptSession):

def test_startup_commands(executor):
m = LiteCli(liteclirc=default_config_file)
assert m.startup_commands

@kracekumar

@kracekumar

@kracekumar

Labels

None yet

Read the original on github.com ↗