mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 07:18:31 +01:00
* 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
20 lines
517 B
Python
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
|