| Total Complexity | 1 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| 1 | #! /usr/bin/env python |
||
| 12 | class ChemicalObject(object): |
||
| 13 | |||
| 14 | """ A mixin for each chemical object in scikit-chem """ |
||
| 15 | |||
| 16 | @classmethod |
||
| 17 | def from_super(cls, obj): |
||
| 18 | |||
| 19 | """A method that converts the class of an object of parent class to that of the child. """ |
||
| 20 | |||
| 21 | obj.__class__ = cls |
||
| 22 | return obj |
||
| 23 |