Coverage for src/kwai/core/template/template.py: 100%
2 statements
« prev ^ index » next coverage.py v7.6.10, created at 2024-01-01 00:00 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2024-01-01 00:00 +0000
1"""Module that defines an interface for a template."""
3from abc import abstractmethod
6class Template:
7 """Interface for a template."""
9 @abstractmethod
10 def render(self, **kwargs) -> str:
11 """Render the template with the variables."""
12 raise NotImplementedError