Skip to content

Commit 6e6f3e7

Browse files
robtaylorclaude
andcommitted
Fix circular import in config.py backward compatibility shim
The config.py shim was importing from .config (itself) instead of .config.parser, causing a circular import that prevented AutoAPI from reading the modules during docs build. Also exported _parse_config_file in config module __init__ for backward compatibility. Fixes CI failure in deploy-preview job. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 65c3589 commit 6e6f3e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

chipflow_lib/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
New code should import directly from chipflow_lib.config instead.
77
"""
88

9-
# Re-export from config module for backward compatibility
10-
from .config import ( # noqa: F401
9+
# Re-export from config.parser module for backward compatibility
10+
from .config.parser import ( # noqa: F401
1111
get_dir_models,
1212
get_dir_software,
1313
_parse_config_file,

chipflow_lib/config/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from .parser import (
2525
get_dir_models,
2626
get_dir_software,
27+
_parse_config_file,
2728
)
2829

2930
__all__ = [
@@ -41,4 +42,5 @@
4142
# Public utilities
4243
'get_dir_models',
4344
'get_dir_software',
45+
'_parse_config_file',
4446
]

0 commit comments

Comments
 (0)