Coverage for src/kwai/modules/training/training_definition_command.py: 100%

13 statements  

« prev     ^ index     » next       coverage.py v7.6.10, created at 2024-01-01 00:00 +0000

1"""Module that defines the common input for the use cases Training Definitions.""" 

2 

3from dataclasses import dataclass 

4 

5 

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

7class TrainingDefinitionCommand: 

8 """Input for the create or update Training Definition use case.""" 

9 

10 name: str 

11 description: str 

12 weekday: int 

13 start_time: str 

14 end_time: str 

15 timezone: str 

16 active: bool 

17 location: str 

18 remark: str | None 

19 team_id: int | None