Coverage for bc/kwai-bc-training/src/kwai_bc_training/teams/team.py: 100%
8 statements
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2024-01-01 00:00 +0000
1"""Module that defines a team entity."""
3from dataclasses import dataclass
4from typing import ClassVar, Type
6from kwai_core.domain.entity import DataclassEntity
7from kwai_core.domain.value_objects.identifier import IntIdentifier
10class TeamIdentifier(IntIdentifier):
11 """Identifier for a team."""
14@dataclass(kw_only=True, eq=False, slots=True, frozen=True)
15class TeamEntity(DataclassEntity):
16 """A team.
18 Attributes:
19 name: The name of the team.
20 """
22 ID: ClassVar[Type] = TeamIdentifier
24 name: str