episode: Pattern: Lazy import inside function body to break circular imports

This commit is contained in:
Cal Corum 2026-02-25 16:26:37 -06:00
parent 9e56f53375
commit 3bc4e6c032

View File

@ -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