Files
dvc/dvc/render/converter/__init__.py
T
skshetry b647475a64 drop Python 3.8 support (#10265)
* drop Python 3.8

Note that this PR only makes typing related changes.
Other changes can be done once this gets merged, they
are relatively few in numbers.

* bump build python version

* add typing_extensions to lint group
2024-01-30 11:33:25 +02:00

20 lines
517 B
Python

from typing import Any, Optional
class Converter:
def __init__(
self,
plot_id: str,
data: Optional[dict[str, Any]] = None,
properties: Optional[dict] = None,
):
self.plot_id = plot_id
self.properties = properties or {}
self.data = data or {}
def convert(self) -> tuple[list[tuple[str, str, Any]], dict]:
raise NotImplementedError
def flat_datapoints(self, revision: str) -> tuple[list[dict], dict]:
raise NotImplementedError