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
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
1"""
2Mixins
3"""
5from typing import Optional
7from .avatar import AvatarMixin
8from .disco import ChatterDiscoMixin
9from .message import MessageCarbonMixin, MessageMixin
10from .presence import PresenceMixin
13class FullMixin(ChatterDiscoMixin, MessageMixin, PresenceMixin):
14 pass
17class FullCarbonMixin(ChatterDiscoMixin, MessageCarbonMixin, PresenceMixin):
18 pass
21class StoredAttributeMixin:
22 def serialize_extra_attributes(self) -> Optional[dict]:
23 return None
25 def deserialize_extra_attributes(self, data: dict) -> None:
26 pass
29__all__ = ("AvatarMixin", "FullCarbonMixin", "StoredAttributeMixin")