From 46f80dfa16a1396027a2f8fea2460f5795e3ee20 Mon Sep 17 00:00:00 2001 From: Jay Shankar Date: Fri, 15 Apr 2022 23:23:43 +0530 Subject: [PATCH] Fix AttributeError: readonly attribute for Python 3.10.4 --- flaml/default/estimator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flaml/default/estimator.py b/flaml/default/estimator.py index 717e3e195..ca7c980da 100644 --- a/flaml/default/estimator.py +++ b/flaml/default/estimator.py @@ -39,8 +39,8 @@ def flamlize_estimator(super_class, name: str, task: str, alternatives=None): self._params = params super().__init__(**params) - @wraps(super_class._get_param_names) @classmethod + @wraps(super_class._get_param_names) def _get_param_names(cls): return super_class._get_param_names()