Skip to content

Commit 609fabf

Browse files
committed
ENH: add more annotation types to JSON consistency check
1 parent 65e82ed commit 609fabf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/json_consistency.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,22 @@
1515

1616
class AnnotationCount(BaseModel):
1717
Highlight: int | None = None
18+
FileAttachment: int | None = None
1819
Ink: int | None = None
1920
Link: int | None = None
21+
Polygon: int | None = None
22+
Popup: int | None = None
2023
Text: int | None = None
2124
Widget: int | None = None
2225

2326
def items(self) -> list[tuple[str, int]]:
2427
return [
2528
("Highlight", self.Highlight if self.Highlight else 0),
26-
("Link", self.Link if self.Link else 0),
29+
("FileAttachment", self.FileAttachment if self.FileAttachment else 0),
2730
("Ink", self.Ink if self.Ink else 0),
31+
("Link", self.Link if self.Link else 0),
32+
("Polygon", self.Polygon if self.Polygon else 0),
33+
("Popup", self.Popup if self.Popup else 0),
2834
("Text", self.Text if self.Text else 0),
2935
("Widget", self.Widget if self.Widget else 0),
3036
]

0 commit comments

Comments
 (0)