fix dataclasses warnings
This commit is contained in:
parent
57707c708b
commit
4895a60848
8
e621.py
8
e621.py
@ -20,7 +20,7 @@ class E621PostFile:
|
|||||||
ext: str
|
ext: str
|
||||||
size: int
|
size: int
|
||||||
md5: str
|
md5: str
|
||||||
url: str
|
url: Optional[str]
|
||||||
|
|
||||||
|
|
||||||
@dataclass_json
|
@dataclass_json
|
||||||
@ -40,7 +40,7 @@ class E621PostFlags:
|
|||||||
class E621PostPreview:
|
class E621PostPreview:
|
||||||
width: int
|
width: int
|
||||||
height: int
|
height: int
|
||||||
url: str
|
url: Optional[str]
|
||||||
|
|
||||||
|
|
||||||
@dataclass_json
|
@dataclass_json
|
||||||
@ -73,7 +73,7 @@ class E621PostSample:
|
|||||||
has: bool
|
has: bool
|
||||||
height: int
|
height: int
|
||||||
width: int
|
width: int
|
||||||
url: str
|
url: Optional[str]
|
||||||
# alternates: E621PostAlternates
|
# alternates: E621PostAlternates
|
||||||
|
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ class E621Post:
|
|||||||
sources: List[str]
|
sources: List[str]
|
||||||
pools: List[int]
|
pools: List[int]
|
||||||
relationships: E621PostRelationships
|
relationships: E621PostRelationships
|
||||||
approver_id: None
|
approver_id: Optional[int]
|
||||||
uploader_id: int
|
uploader_id: int
|
||||||
description: str
|
description: str
|
||||||
comment_count: int
|
comment_count: int
|
||||||
|
Loading…
Reference in New Issue
Block a user