12 errors - sqlit/ui/mixins/tree.py
10 errors - sqlit/ui/screens/connection.py
7 errors - sqlit/commands.py
6 errors - sqlit/db/adapters/ (various)
4 errors - sqlit/app.py
Functions missing parameter type annotations.
Example:
# Before
def on_button_pressed(event):
...
# After
def on_button_pressed(event: Button.Pressed) -> None:
...Missing attributes in Protocol or enum issues.
Common ones:
DatabaseType.MSSQL- enum member access- Missing Protocol attributes
Wrong return type annotations.
Example:
# Wrong
def cursor(self) -> None:
return MockCursor() # Error!
# Fixed
def cursor(self) -> MockCursor:
return MockCursor()Functions returning Any but declared to return specific type.
Example:
# In adapters
def get_row_count(self, cursor: Any) -> int:
return cursor.rowcount # rowcount is Any typeRun in Neovim:
:Telescope diagnostics- Browse all errors:lua vim.diagnostic.open_float()- Show error under cursorgd- Go to definitionK- Show hover info
See: mypy-errors.txt (177 errors across 31 files)