episode: When extracting a class, also move its module-level helper dependencies

This commit is contained in:
Cal Corum 2026-02-25 16:44:27 -06:00
parent 5d6688bbbe
commit 4dea33e820

View File

@ -79,3 +79,9 @@ Errors encountered (2):
- **Tags:** python, circular-imports, architecture, refactoring, paper-dynasty
- **Memory:** [break-circular-imports-by-extracting-shared-models-to-models-b235f9](graph/solutions/break-circular-imports-by-extracting-shared-models-to-models-b235f9.md)
- **Summary:** ## Problem\nTwo modules mutually importing from each other (A imports from B, B imports from A)
## 16:44 - When extracting a class, also move its module-level helper dependencies
- **Type:** code_pattern
- **Tags:** python, refactoring, code-organization, circular-imports, paper-dynasty
- **Memory:** [when-extracting-a-class-also-move-its-module-level-helper-de-9c7873](graph/code-patterns/when-extracting-a-class-also-move-its-module-level-helper-de-9c7873.md)
- **Summary:** ## Pattern\nWhen extracting a class to a new file, check if any module-level helper functions are