Skip to content

Commit c306f88

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

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/json_consistency.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,23 @@
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

26+
2327
def items(self) -> list[tuple[str, int]]:
2428
return [
2529
("Highlight", self.Highlight if self.Highlight else 0),
26-
("Link", self.Link if self.Link else 0),
30+
("FileAttachment", self.FileAttachment if self.FileAttachment else 0),
2731
("Ink", self.Ink if self.Ink else 0),
32+
("Link", self.Link if self.Link else 0),
33+
("Polygon", self.Polygon if self.Polygon else 0),
34+
("Popup", self.Popup if self.Popup else 0),
2835
("Text", self.Text if self.Text else 0),
2936
("Widget", self.Widget if self.Widget else 0),
3037
]

0 commit comments

Comments
 (0)