fix: add formatter modules
This commit is contained in:
@@ -3,10 +3,9 @@ from typing import Any
|
|||||||
|
|
||||||
|
|
||||||
class BaseFormatter(ABC):
|
class BaseFormatter(ABC):
|
||||||
"""Base formatter interface."""
|
"""Base class for formatters."""
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def format(data: Any) -> str:
|
def format(self, data: Any) -> str:
|
||||||
"""Format data to string."""
|
"""Format data to string."""
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user