Uh oh!
There was an error while loading. Please reload this page.
DOCS: Add ARCHITECTURE.md. - #1070
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@## main #1070 +/- ##
==========================================
+ Coverage 89.38% 90.73% +1.35%
==========================================
Files 89 91 +2 Lines 5179 5970 +791 Branches 663 873 +210 ==========================================
+ Hits 4629 5417 +788
Misses 386 386 - Partials 164 167 +3
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:
|
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): no exported symbol type-completeness changes detected. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
henrydingliu
commented
Jun 29, 2026
thank you so much for this!! just one gripe. |
Uh oh!
There was an error while loading. Please reload this page.
Summary of Changes
I asked Claude to write this up, because there was no way I was going to draw that tree manually.
Related GitHub Issue(s)
#1004
Additional Context for Reviewers
GitHub-rendered Markdown can be viewed at:
https://github.com/casact/chainladder-python/blob/3fb2ac47ee290b7d3f1de7df3f2ac25b1a806f88/ARCHITECTURE.md
Let me know what you think of the level of jargon in this file, and whether you think an interested contributor would understand it. I had to do a lot of googling of the terms. I expanded acronyms and added clarifying text.
For example a sentence like:
Could be written in plainer English if we expanded it to be a few paragraphs. After googling terms like "single-responsibility" and "MRO", I decided I was mostly satisfied with these explanations, so I didn't replace the jargon.
uv run pytest) and documentation changes (uv run jb build docs --builder=custom --custom-builder=doctest)Note
Low Risk
Documentation-only change with no runtime or API impact.
Overview
Introduces
ARCHITECTURE.mdat the repo root as onboarding documentation for contributors (issue #1004).The doc maps the
chainladder/tree (core,development,tails,methods,adjustments,workflow,utils) with short notes on what each module owns. It explains howTriangleis built from mixins viaTriangleBaseand MRO order, how.loc/.ilocaccessors are composed throughTriangleSlicer._set_slicers, and documents theTYPE_CHECKING+TriangleProtocolpattern for mixin typing without runtime MRO conflicts. A second section sketches sklearn-style inheritance for development, tail, reserve, adjustment, and workflow estimators.No application code, tests, or build config are modified—documentation only.
Reviewed by Cursor Bugbot for commit c630bc8. Bugbot is set up for automated code reviews on this repo. Configure here.