Title: Add return type hints to dashboard/app.py cache helpers
Body:
Problem
Three cached helper functions in dashboard/app.py have docstrings but no return type annotations:
get_connection() — returns sqlite3.Connection
_get_cached_portfolio() — returns list[dict]
_get_cached_filings(bse_code: str) — returns list[dict]
Solution
Add return type hints to all three functions.
@st.cache_resource
def get_connection() -> sqlite3.Connection:
...
@st.cache_data(ttl=30)
def _get_cached_portfolio() -> list[dict]:
...
@st.cache_data(ttl=30)
def _get_cached_filings(bse_code: str) -> list[dict]:
...
Acceptance Criteria
Difficulty
Easy — 3 type annotations, 1 file
Size
XS — ~3 lines changed
Files Affected
dashboard/app.py
Title: Add return type hints to dashboard/app.py cache helpers
Body:
Problem
Three cached helper functions in
dashboard/app.pyhave docstrings but no return type annotations:get_connection()— returnssqlite3.Connection_get_cached_portfolio()— returnslist[dict]_get_cached_filings(bse_code: str)— returnslist[dict]Solution
Add return type hints to all three functions.
Acceptance Criteria
get_connection()has return type-> sqlite3.Connection_get_cached_portfolio()has return type-> list[dict]_get_cached_filings(bse_code: str)has return type-> list[dict]pytest tests/ -vpasses with no new errorsDifficulty
Easy — 3 type annotations, 1 file
Size
XS — ~3 lines changed
Files Affected
dashboard/app.py