def __init__(self, *types): self.types = [_to_instance(t) for t in types]
def test_with_class(self): assert isinstance(_to_instance(object), object)
def test_with_instance(self): assert isinstance(_to_instance(object()), object)