You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: modernise type annotations and Streamlit API usage
- Replace all `Optional[X]` with `X | None` and drop `typing.Optional`
imports across src/ and tests/
- Use `astropy.constants` module import instead of direct `m_p` symbol
import in drag.py
- Simplify M-is-None guard clauses to ternary expressions
- Replace `try/except ValueError: pass` with `contextlib.suppress`
- Update `st.plotly_chart(use_container_width=True)` → `width="stretch"`
and `st.button/data_editor(use_container_width=True)` → `width="content"`
to match the current Streamlit API
- Fix pytest.mark.parametrize argument tuples (string → tuple literal)
and add `match=` to bare `pytest.raises` calls in tests
- Split compound assert into separate assertions for clearer failure msgs
0 commit comments