Coverage for kwai/modules/identity/user_invitations/user_invitation_events.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.3.0, created at 2023-09-05 17:55 +0000

1"""Module that defines all user invitation events.""" 

2from dataclasses import dataclass 

3from typing import ClassVar 

4 

5from kwai.core.events.event import Event, EventMeta 

6 

7 

8@dataclass(kw_only=True, frozen=True, slots=True) 

9class UserInvitationCreatedEvent(Event): 

10 """Event raised when a user invitation is created.""" 

11 

12 meta: ClassVar[EventMeta] = EventMeta(name="identity.user_invitation.created") 

13 uuid: str