13 lines
246 B
Python
13 lines
246 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Any
|
|
|
|
|
|
class BaseFormatter(ABC):
|
|
"""Base formatter interface."""
|
|
|
|
@staticmethod
|
|
@abstractmethod
|
|
def format(data: Any) -> str:
|
|
"""Format data to string."""
|
|
pass
|