Skip to content

Commit

Permalink
Checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
morington committed Jul 4, 2024
1 parent 602cb7a commit a8855b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion confhub/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def add_field_to_datafiles(field_name: str, field: ConfigurationField, parent_pa
current[part] = {}
current = current[part]

current[field_name] = field.get_default_value()
if not isinstance(field.data_type, BlockCore):
current[field_name] = field.get_default_value()

def process_block(_block: BlockCore, parent_path: List[str]) -> None:
current_path = parent_path + [_block.__block__]
Expand Down
4 changes: 2 additions & 2 deletions confhub/core/fields.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Type
from typing import Type, Any

from confhub.core.types import DataTypeMapping

Expand All @@ -19,7 +19,7 @@ def get_default_value(self) -> str:


def field(
data_type: Type,
data_type: Any,
secret: bool = False,
filename: str = None
) -> ConfigurationField:
Expand Down

0 comments on commit a8855b8

Please sign in to comment.