Skip to content

Commit 9ffc55c

Browse files
committed
Remove private parser functions from config module public interface
Removed _parse_config_file and _parse_config from chipflow_lib.config imports. These are internal/private functions (indicated by underscore prefix) and should not be accessible via the config module's public interface. Updated: - chipflow_lib/config/__init__.py: Removed imports of private functions - chipflow_lib/__init__.py: Import _parse_config directly from config.parser - tests/test_init.py: Import _parse_config_file from config.parser submodule These functions remain accessible internally but are no longer exposed as part of the config module's public API.
1 parent 83ce988 commit 9ffc55c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

chipflow_lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
def _parse_config() -> 'Config':
3333
"""Parse the chipflow.toml configuration file."""
34-
from .config import _parse_config as config_parse
34+
from .config.parser import _parse_config as config_parse
3535
return config_parse()
3636

3737

chipflow_lib/config/__init__.py

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

3129
__all__ = [

tests/test_init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
_ensure_chipflow_root,
1414
_parse_config
1515
)
16-
from chipflow_lib.config import _parse_config_file
16+
from chipflow_lib.config.parser import _parse_config_file
1717
from chipflow_lib.config_models import Config, ChipFlowConfig
1818
# Process is not part of the public API, so we won't test it here
1919

0 commit comments

Comments
 (0)