Skip to content

Commit

Permalink
ignore underunderscored attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Apr 7, 2024
1 parent 9095c33 commit 91617e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/radical/utils/typeddict.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,15 @@ def __getattr__(self, k):

def __setattr__(self, k, v):

# if k.startswith('_'):
# return object.__setattr__(self, k, v)
if k.startswith('__'):
return object.__setattr__(self, k, v)

self._data[k] = self._verify_setter(k, v)

def __delattr__(self, k):

# if k.startswith('_'):
# return object.__delattr__(self, k)
if k.startswith('__'):
return object.__delattr__(self, k)

del self._data[k]

Expand Down

0 comments on commit 91617e5

Please sign in to comment.