Skip to content

Commit

Permalink
update dict directly
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 3, 2024
1 parent 22ebb7d commit a4d1ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vyper/semantics/analysis/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ def __reduce__(self):
@classmethod
def _produce(cls, data):
ret = cls.__new__(cls)
for k, v in data.items():
object.__setattr__(ret, k, v)
return cls
# bypass blocking of setattr by `frozen=True`
ret.__dict__.update(data)
return ret

@cached_property
def attrs(self):
Expand Down

0 comments on commit a4d1ae4

Please sign in to comment.