Skip to content

Commit 6d72419

Browse files
committed
Changing default behavior of the HelperModel.cast_to_superclass method
1 parent a0fce17 commit 6d72419

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/osw/data/import_utility.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ def cast_to_superclass(
129129
self.transform_references(dd)
130130

131131
superclass = self.__class__.__bases__[0]
132-
self.casted_instance = self.cast_none_to_default(cls=superclass)
132+
self.casted_instance = self.cast(
133+
cls=superclass, none_to_default=True, remove_extra=True
134+
)
133135
if return_casted:
134136
return self.casted_instance
135137
return True

0 commit comments

Comments
 (0)