Spaces:
Sleeping
Sleeping
File size: 352 Bytes
23687d1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import dataclasses
@dataclasses.dataclass()
class BaseModel:
index: str
id: int
title: str
ctime: int
user: str
url: str
type: str
@dataclasses.dataclass(frozen=True)
class GithubIssue(BaseModel):
labels: list[str]
type: str = "issue"
@dataclasses.dataclass(frozen=True)
class WikiPage:
type: str = "wiki"
|