From b3c62e3f0f823633e0983c19cee0dd8caedc8632 Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Thu, 2 May 2024 11:36:53 +0200 Subject: [PATCH] revert key filtering change --- src/radical/utils/typeddict.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/radical/utils/typeddict.py b/src/radical/utils/typeddict.py index 4bf38b22..49e4ff11 100644 --- a/src/radical/utils/typeddict.py +++ b/src/radical/utils/typeddict.py @@ -280,7 +280,7 @@ def __getattr__(self, k): self.__dict__['_data'] = dict() return self.__dict__['_data'] - if k.startswith('_'): + if k.startswith('__'): return object.__getattribute__(self, k) data = self._data @@ -292,14 +292,14 @@ def __getattr__(self, k): def __setattr__(self, k, v): - if k.startswith('_'): + if k.startswith('__'): return object.__setattr__(self, k, v) self._data[k] = self._verify_setter(k, v) def __delattr__(self, k): - if k.startswith('_'): + if k.startswith('__'): return object.__delattr__(self, k) del self._data[k]