We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e39d29a commit 9e3bbb8Copy full SHA for 9e3bbb8
1 file changed
agentune/core/database.py
@@ -314,7 +314,10 @@ def _mandatory_config_dict(self) -> dict[str, str]:
314
'python_enable_replacements': 'False',
315
}
316
317
- def to_config_dict(self) -> dict[str, str]:
+ def to_config_dict(self) -> dict[str, str | bool | int | float | list[str]]:
318
+ """The verbose return type avoids a type error when passing the dict to duckdb.connect().
319
+ In practice, we return a dict containing only string values.
320
+ """
321
set_fields = { k: str(v) for k, v
322
in cattrs.Converter().unstructure_attrs_asdict(self).items()
323
if v is not None and k != 'config' }
0 commit comments