Exemple #1
0
 def __init__(self, *types):
     self.types = [_to_instance(t) for t in types]
Exemple #2
0
 def test_with_class(self):
     assert isinstance(_to_instance(object), object)
Exemple #3
0
 def __init__(self, *types):
     self.types = [_to_instance(t) for t in types]
Exemple #4
0
 def test_with_instance(self):
     assert isinstance(_to_instance(object()), object)