Skip to content

Commit dc87e8f

Browse files
quantbaiclaude
andauthored
feat: docs restructure, show_versions, pyright CI, remove 1e-10 zero guards (#7)
* feat(ci): add pyright static type checking - Fix 4 pyright errors in factor.py (hash annotation, eq/ne override, dead code) - Add pyright to CI pipeline and dev dependencies - Remove _resolve_other (dead code after _binary refactor) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add pyright to all checklists and update changelog for 0.4.0 - PR template: add pyright check item - README Development section: add pyright command - CONTRIBUTING: add pyright to verify, dev cycle, and pre-PR checklist - CHANGELOG [Unreleased]: full list of additions and changes since 0.3.0 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(core): add missing type hints to _rbinary method Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 598b78d commit dc87e8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

elvers/core/factor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _binary(self, other: Factor | int | float, op, op_sym: str) -> Factor:
6868
)
6969
return Factor(result, f"({self._name}{op_sym}{other})")
7070

71-
def _rbinary(self, other, op, op_sym) -> Factor:
71+
def _rbinary(self, other: Factor | int | float, op, op_sym: str) -> Factor:
7272
result = self._df.with_columns(
7373
op(pl.lit(other), pl.col("factor")).alias("factor")
7474
)

0 commit comments

Comments
 (0)