Coverage for tadkit/utils/_not_imported_wrapper.py: 86%

7 statements  

« prev     ^ index     » next       coverage.py v7.10.6, created at 2025-09-04 15:09 +0000

1 

2class NotImportedWrapper: 

3 """Exception handler in case Confiance.AI dependencies are not available.""" 

4 

5 def __init__(self, exc): 

6 self.exc = exc 

7 

8 def __getattribute__(self, __name): 

9 raise super().__getattribute__("exc") 

10 

11 def __call__(self): 

12 raise super().__getattribute__("exc")