Skip to content

fix: resolve the PyCharm type-checker findings in price, scan and the web demo - #97

Merged
Codex-Crusader merged 1 commit into
mainfrom
fix/pycharm-type-findings
Oct 12, 2026
Merged

Codex-Crusader merged 1 commit into
mainfrom
fix/pycharm-type-findings

Conversation

@Codex-Crusader

Copy link
Copy Markdown
Member

What

Fix the 4 PyTypeCheckerInspection findings from the shared PyCharm profile:

  • price.py: compute volatility with numpy on the returns after NaNs are dropped. The value is the same as before. Fewer than two returns now give 0.0 instead of NaN.
  • scan.py: give the failure payload its own name instead of reusing a dict | None variable.
  • web/dashboard.py: fall back to the first option when selectbox returns None, so the ticker lookup always gets a str.

Both dashboards render with no exceptions under streamlit.testing.AppTest.

Checks

  • ruff check ., mypy pulseengine/ and pytest pass on this commit by itself.

… web demo


- price: compute volatility with numpy on the dropped-NaN returns. The value is the same, and fewer than two returns give 0.0 instead of NaN.

- scan: give the failure payload its own name instead of reusing the dict | None variable.

- web: stop the page when a selectbox returns None, so the ticker lookup gets a str.
@Codex-Crusader
Codex-Crusader merged commit 354c8b4 into main Oct 12, 2026
6 checks passed
@Codex-Crusader
Codex-Crusader deleted the fix/pycharm-type-findings branch October 12, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant