fix: resolve pyright type errors in Python analysis modules

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pratik Bhadane
2026-04-01 20:19:47 +05:30
parent 5015716692
commit 262f0a2916
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -112,9 +112,8 @@ def format_currency(amount: float, currency: _RustCurrency | None = None) -> str
>>> format_currency(1234567.89, USD)
'$1,234,567.89'
"""
if currency is None:
currency = INR
return currency.format(amount)
effective: _RustCurrency = currency if currency is not None else INR
return effective.format(amount)
# ---------------------------------------------------------------------------
@@ -599,7 +598,7 @@ def _build_trades_df(
)
if len(eb) == 0:
return pd.DataFrame(
columns=[
columns=[ # type: ignore[arg-type]
"entry_bar",
"exit_bar",
"direction",