refactor: dataclasses are now defined as types in types.py
This commit is contained in:
parent
f9066279af
commit
5569f20b8b
@ -0,0 +1,6 @@
|
||||
from .types import Patents, Patent
|
||||
|
||||
all = [
|
||||
"Patents",
|
||||
"Patent"
|
||||
]
|
||||
11
SPARC/types.py
Normal file
11
SPARC/types.py
Normal 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]
|
||||
Loading…
Reference in New Issue
Block a user