Commit 89eaba5
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 clean1 parent a99c644 commit 89eaba5
3 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments