Skip to content

Commit bebd0b4

Browse files
committed
Make CMakeSettingsDefine private
1 parent bce3d75 commit bebd0b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/scikit_build_core/settings/skbuild_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ def __dir__() -> List[str]:
2727
return __all__
2828

2929

30-
class CMakeSettingsDefine(str):
30+
class _CMakeSettingsDefine(str):
3131
"""
3232
A str subtype for automatically normalizing bool and list values
3333
to the CMake representation in the `cmake.define` settings key.
3434
"""
3535

3636
json_schema = Union[str, bool, List[str]]
3737

38-
def __new__(cls, raw: Union[str, bool, List[str]]) -> "CMakeSettingsDefine":
38+
def __new__(cls, raw: Union[str, bool, List[str]]) -> "_CMakeSettingsDefine":
3939
def escape_semicolons(item: str) -> str:
4040
return item.replace(";", r"\;")
4141

@@ -71,7 +71,7 @@ class CMakeSettings:
7171
in config or envvar will override toml. See also ``cmake.define``.
7272
"""
7373

74-
define: Annotated[Dict[str, CMakeSettingsDefine], "EnvVar"] = dataclasses.field(
74+
define: Annotated[Dict[str, _CMakeSettingsDefine], "EnvVar"] = dataclasses.field(
7575
default_factory=dict
7676
)
7777
"""

0 commit comments

Comments
 (0)