vlff李飞飞
update md
2319518
raw
history blame
243 Bytes
from dataclasses import dataclass
# TODO: use pydantic instead?
@dataclass
class RefMaterial:
url: str
text: list
def to_dict(self) -> dict:
return {
'url': self.url,
'text': self.text,
}