Conditions | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import abc |
||
9 | @abc.abstractmethod |
||
10 | def translate(self, message): |
||
11 | '''Translates a given message to an appropriate format to message processing. |
||
12 | This method should return a `dict` instance with two keys: `content` |
||
13 | and `metadata`. |
||
14 | The `content` should contain the translated message and, `metadata` a |
||
15 | dictionary with translation metadata or an empty `dict`. |
||
16 | ''' |
||
17 | |||
24 |