Skip to content

Commit a4bec4b

Browse files
committed
Add Description Slots
1 parent 9917874 commit a4bec4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cppython/plugins/cmake/schema.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class ConfigurePreset(CPPythonModel, extra='allow'):
4646
"""Partial Configure Preset specification to allow cache variable injection"""
4747

4848
name: str
49+
description: Annotated[str | None, Field(description='A human-readable description of the preset.')] = None
50+
4951
hidden: Annotated[bool | None, Field(description='If true, the preset is hidden and cannot be used directly.')] = (
5052
None
5153
)
@@ -68,6 +70,8 @@ class BuildPreset(CPPythonModel, extra='allow'):
6870
"""Partial Build Preset specification for CMake build presets"""
6971

7072
name: str
73+
description: Annotated[str | None, Field(description='A human-readable description of the preset.')] = None
74+
7175
hidden: Annotated[bool | None, Field(description='If true, the preset is hidden and cannot be used directly.')] = (
7276
None
7377
)

0 commit comments

Comments
 (0)