refactor: dataclasses are now defined as types in types.py

This commit is contained in:
0xWheatyz 2025-11-27 19:22:43 -05:00
parent f9066279af
commit 5569f20b8b
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
from .types import Patents, Patent
all = [
"Patents",
"Patent"
]

11
SPARC/types.py Normal file
View File

@ -0,0 +1,11 @@
from dataclass import dataclass
@dataclass
class Patent:
patent_id: int
pdf_link: str
summary: dict
@dataclass
class Patents:
patents: list[Patent]