Some checks failed
Build Simulation and Test / Run All Tests (push) Failing after 8m17s
Major rewrite.
18 lines
414 B
Python
18 lines
414 B
Python
"""Base formatter interface for output data."""
|
|
|
|
from abc import ABC, abstractmethod
|
|
from typing import Any
|
|
|
|
|
|
class BaseFormatter(ABC):
|
|
"""Base class for data formatters."""
|
|
|
|
@abstractmethod
|
|
def format(self, data: Any) -> str:
|
|
"""Format data for output."""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def get_file_extension(self) -> str:
|
|
"""Get file extension for this format."""
|
|
pass |