We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 122b1dd commit 3143de0Copy full SHA for 3143de0
kauldron/konfig/configdict_proxy.py
@@ -21,6 +21,7 @@
21
import dataclasses
22
import functools
23
import importlib
24
+import inspect
25
import itertools
26
import typing
27
from typing import Any, TypeVar
@@ -259,7 +260,7 @@ def _resolve_dict(self, value):
259
260
e = _wrap_cfg_error(e, value, frame=value._frame) # pylint: disable=protected-access
261
raise e from e.__cause__
262
# Allow the object to save the config it is comming from.
- if hasattr(type(obj), '__post_konfig_resolve__'):
263
+ if inspect.getattr_static(type(obj), '__post_konfig_resolve__', None):
264
obj.__post_konfig_resolve__(value)
265
self._id_to_obj[id(value)] = utils.CachedObj(ref=value, value=obj)
266
return obj
0 commit comments