Coverage for slidge/core/mixins/__init__.py: 93%

15 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-11-07 05:11 +0000

1""" 

2Mixins 

3""" 

4 

5from typing import Optional 

6 

7from .avatar import AvatarMixin 

8from .disco import ChatterDiscoMixin 

9from .message import MessageCarbonMixin, MessageMixin 

10from .presence import PresenceMixin 

11 

12 

13class FullMixin(ChatterDiscoMixin, MessageMixin, PresenceMixin): 

14 pass 

15 

16 

17class FullCarbonMixin(ChatterDiscoMixin, MessageCarbonMixin, PresenceMixin): 

18 pass 

19 

20 

21class StoredAttributeMixin: 

22 def serialize_extra_attributes(self) -> Optional[dict]: 

23 return None 

24 

25 def deserialize_extra_attributes(self, data: dict) -> None: 

26 pass 

27 

28 

29__all__ = ("AvatarMixin", "FullCarbonMixin", "StoredAttributeMixin")