diff options
Diffstat (limited to 'constructor.py')
-rw-r--r-- | constructor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/constructor.py b/constructor.py index 1673479..e608db4 100644 --- a/constructor.py +++ b/constructor.py @@ -1636,7 +1636,7 @@ class RoundTripConstructor(SafeConstructor): else: state = SafeConstructor.construct_mapping(self, node) if hasattr(data, '__attrs_attrs__'): # issue 394 - cls.__init__(cls, **state) + data.__init__(**state) else: data.__dict__.update(state) if node.anchor: |