Skip to content

Commit 89eaba5

Browse files
committed
types: add shared DBCursor protocol; annotate special modules and core
- Introduce packages/special/types.py with DBCursor Protocol - Add/ tighten type hints across special/, sqlcompleter, sqlexecute, clibuffer/toolbar/style, config, filepaths, lexer, completion_refresher, key_bindings - Remove remaining mypy ignore headers in special modules - Replace Any with concrete types where safe; improve TextIO handling - Fix utils.check_if_sqlitedotcommand to handle non-str inputs safely - Remove mycli references in comments and update docstrings - Minor refactors for clarity; ruff+mypy clean
1 parent a99c644 commit 89eaba5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

litecli/liteclirc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ table_format = ascii
4747
# manni, igor, xcode, vim, autumn, vs, rrt, native, perldoc, borland, tango, emacs,
4848
# friendly, monokai, paraiso, colorful, murphy, bw, pastie, paraiso, trac, default,
4949
# fruity.
50-
# Screenshots at http://mycli.net/syntax
50+
# See the LiteCLI README for syntax examples
5151
syntax_style = default
5252

5353
# Keybindings: Possible values: emacs, vi.

litecli/packages/special/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def parse_special_command(sql: str) -> Tuple[str, "Verbosity", str]:
5151
"""
5252
Parse a special command, extracting the base command name, verbosity
5353
(normal, verbose (+), or succinct (-)), and the remaining argument.
54-
Mirrors mycli's behavior.
54+
Mirrors the behavior used in similar CLI tools.
5555
"""
5656
command, _, arg = sql.partition(" ")
5757
verbosity = Verbosity.NORMAL

litecli/sqlcompleter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""SQL completer with typed interfaces aligned to mycli."""
1+
"""SQL completer with typed interfaces for LiteCLI."""
22

33
# mypy: ignore-errors
44

0 commit comments

Comments
 (0)