Skip to content

Commit 8732138

Browse files
authored
[Internal]: Update backend template to match ruff formatting (#2735)
1 parent b8b1b73 commit 8732138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dstack/_internal/core/backends/template/models.py.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class {{ backend_name }}BackendConfig(CoreModel):
2222
It also serves as a base class for other backend config models.
2323
Should not include creds.
2424
"""
25+
2526
type: Annotated[
2627
Literal["{{ backend_name|lower }}"],
2728
Field(description="The type of backend"),
@@ -37,6 +38,7 @@ class {{ backend_name }}BackendConfigWithCreds({{ backend_name }}BackendConfig):
3738
"""
3839
Same as `{{ backend_name }}BackendConfig` but also includes creds.
3940
"""
41+
4042
creds: Annotated[Any{{ backend_name }}Creds, Field(description="The credentials")]
4143

4244

@@ -48,11 +50,13 @@ class {{ backend_name }}StoredConfig({{ backend_name }}BackendConfig):
4850
The backend config used for config parameters in the DB.
4951
Can extend `{{ backend_name }}BackendConfig` with additional parameters.
5052
"""
53+
5154
pass
5255

5356

5457
class {{ backend_name }}Config({{ backend_name }}StoredConfig):
5558
"""
5659
The backend config used by `{{ backend_name }}Backend` and `{{ backend_name }}Compute`.
5760
"""
61+
5862
creds: Any{{ backend_name }}Creds

0 commit comments

Comments
 (0)