in doubles/target.py [0:0]
def _determine_doubled_obj_type(self):
"""Returns the type (class) of the target object.
:return: The type (class) of the target.
:rtype: type, classobj
"""
if isclass(self.doubled_obj) or ismodule(self.doubled_obj):
return self.doubled_obj
return self.doubled_obj.__class__