Skip to content

Commit

Permalink
core.common: bring back asdict backwards compat -- was used in orger
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Aug 17, 2024
1 parent 7bfce72 commit 245ad22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions my/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,12 @@ def LazyLogger(*args, **kwargs):

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

Expand Down

0 comments on commit 245ad22

Please sign in to comment.