From 37d03dd69c38c4990ca63a0dcbe05ba315dd6008 Mon Sep 17 00:00:00 2001 From: James Montgomery Date: Tue, 15 Jul 2025 12:03:07 -0700 Subject: [PATCH] Fixed bug with pathlib objs and yaml.safe_dump --- mlky/__init__.py | 2 +- mlky/configs/types.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mlky/__init__.py b/mlky/__init__.py index 6b327fb..ea08c8e 100644 --- a/mlky/__init__.py +++ b/mlky/__init__.py @@ -2,7 +2,7 @@ """ import importlib.metadata -__version__ = "4.2.7" +__version__ = "4.2.8" # Instantiate before the CLI from .configs import * diff --git a/mlky/configs/types.py b/mlky/configs/types.py index d6009ab..b044e3c 100644 --- a/mlky/configs/types.py +++ b/mlky/configs/types.py @@ -122,6 +122,10 @@ def cast(cls, value): return cls.dtype(str(value)) + @classmethod + def yaml(cls, value): + return Types.yaml(cls, str(value)) + # Define what keys would match to which dtype class dtypes = {