Coverage for confy_addons/core/mixins.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2026-02-20 18:19 +0000

1"""Mixin classes for encryption handlers.""" 

2 

3 

4class EncryptionMixin: 

5 """Mixin class for encryption handlers. 

6 

7 This mixin provides a common interface for encryption handler classes, 

8 allowing them to be identified as encryption-related classes. 

9 

10 """ 

11 

12 def __delattr__(self, _): 

13 """Prevent deletion of attributes to enhance security. 

14 

15 Raises: 

16 AttributeError: Always raised to prevent attribute deletion. 

17 

18 """ 

19 raise AttributeError('Attribute deletion is not allowed for security reasons')