From 3bc4e6c03256e307a38a6c7e86defb04d01e6dac Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Wed, 25 Feb 2026 16:26:37 -0600 Subject: [PATCH] episode: Pattern: Lazy import inside function body to break circular imports --- episodes/2026-02-25.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/episodes/2026-02-25.md b/episodes/2026-02-25.md index d52394b2dd6..bb727d8d663 100644 --- a/episodes/2026-02-25.md +++ b/episodes/2026-02-25.md @@ -45,3 +45,9 @@ - **Tags:** paper-dynasty, card-creation, card_builder, Decimal, float, TypeError, type-mismatch - **Memory:** [fix-floatdecimal-type-mismatch-in-card-builders-card-creatio-52e4aa](graph/fixes/fix-floatdecimal-type-mismatch-in-card-builders-card-creatio-52e4aa.md) - **Summary:** ## Problem\nWhen porting card builders from database (which uses Decimal throughout) to + +## 16:26 - Pattern: Lazy import inside function body to break circular imports +- **Type:** code_pattern +- **Tags:** paper-dynasty, card-creation, card_builder, calcs_batter, circular_import, lazy_import, python +- **Memory:** [pattern-lazy-import-inside-function-body-to-break-circular-i-d637ad](graph/code-patterns/pattern-lazy-import-inside-function-body-to-break-circular-i-d637ad.md) +- **Summary:** ## Problem\nbatters/card_builder.py imports from batters/calcs_batter.py (needs