From 71dea22a5bfc0d401b2eff485aa068dfdb542fb0 Mon Sep 17 00:00:00 2001 From: zethson Date: Mon, 9 Dec 2024 15:01:12 +0100 Subject: [PATCH] :art: Fix soma Signed-off-by: zethson --- lamindb/_curate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lamindb/_curate.py b/lamindb/_curate.py index 9e0c69c9b..7ef18fb71 100644 --- a/lamindb/_curate.py +++ b/lamindb/_curate.py @@ -117,7 +117,8 @@ def __init_subclass__(cls, **kwargs): # Deprecated methods if "sphinx" not in sys.modules: - cls.add_new_from_columns = cls._add_new_from_columns + if hasattr(cls, "_add_new_from_columns"): + cls.add_new_from_columns = cls._add_new_from_columns def validate(self) -> bool: """Validate dataset.