From 245ad220578a3f3a7db1414bb7d5379f77fb1fd3 Mon Sep 17 00:00:00 2001 From: karlicoss Date: Sat, 17 Aug 2024 12:56:13 +0100 Subject: [PATCH] core.common: bring back asdict backwards compat -- was used in orger --- my/core/common.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/my/core/common.py b/my/core/common.py index 9a58caf..225ff2c 100644 --- a/my/core/common.py +++ b/my/core/common.py @@ -212,6 +212,12 @@ if not TYPE_CHECKING: return logging.LazyLogger(*args, **kwargs) + @deprecated('use my.core.types.asdict instead') + def asdict(*args, **kwargs): + from . import types + + return types.asdict(*args, **kwargs) + # todo wrap these in deprecated decorator as well? from .cachew import mcachew # noqa: F401