Coverage for kwai/core/template/template.py: 100%

3 statements  

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

1"""Module that defines an interface for a template.""" 

2from abc import abstractmethod 

3from typing import Any 

4 

5 

6class Template: 

7 """Interface for a template.""" 

8 

9 @abstractmethod 

10 def render(self, **kwargs: dict[str, Any]) -> str: 

11 """Render the template with the variables.""" 

12 raise NotImplementedError