Uh oh!
There was an error while loading. Please reload this page.
sync - #1085
Conversation
# Conflicts: # chainladder/core/typing.py
Pandas annotations
DOCS: Add ARCHITECTURE.md.
TEST: Add tests for base.py
Uh oh!
There was an error while loading. Please reload this page.
Pyright Type CompletenessView the full Project (full
Other symbols referenced but not exported by
Symbols without documentation:
Patch (exported symbols added or changed by this PR): 39.1% fully typed (9 / 23); 3 no longer exported
Patch symbol details
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## experimental #1085 +/- ##
================================================
+ Coverage 89.75% 90.18% +0.42%
================================================
Files 91 91 Lines 5408 5409 +1 Branches 696 696 ================================================
+ Hits 4854 4878 +24 + Misses 389 375 -14 + Partials 165 156 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary of Changes
Related GitHub Issue(s)
Additional Context for Reviewers
uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)Note
Low Risk
Changes are documentation, static typing, and tests with no intentional reserve-calculation behavior changes; dependency pin is a minor compatibility guard.
Overview
Adds
ARCHITECTURE.mddocumenting package layout, the Triangle mixin stack, composition of indexers, and theTYPE_CHECKING+TriangleProtocolpattern for mixins without runtime Protocol MRO issues.Typing:
TrianglePandasnow uses a conditional_TrianglePandasBase(TriangleProtocolunderTYPE_CHECKING,objectat runtime).TriangleProtocolgains axis setters,__round__, and stricterfillnatyping;_auto_sparse()is annotated to returnTriangle. The pandas-style API onTrianglePandasgets clearer return types and small cleanups (rounddelegates to__round__,pct_chgDataFrame passthrough,concatimport at module level).Tests: Broad new coverage for arithmetic unions/broadcasting,
__array__/__array_function__, auto-sparse behavior, polars__dataframe__init, invalid origin/development rows, and related edge cases.Deps:
uv.lockcaps pandas at<=3.0.3.Reviewed by Cursor Bugbot for commit 55f9524. Bugbot is set up for automated code reviews on this repo. Configure here.