Coverage for src/crawler/types.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2025-01-15 14:09 +0000

1from typing import Literal, TypedDict 

2 

3CitationLiteral = Literal[ 

4 "lang", 

5 "title", 

6 "author", 

7 "pdf", 

8 "abstract", 

9 "page", 

10 "doi", 

11 "mr", 

12 "zbl", 

13 "publisher", 

14 "keywords", 

15] 

16 

17 

18class JSONCol(TypedDict): 

19 """Element of the JSON outputted by the CSV file""" 

20 

21 sources: dict[str, str] 

22 pid: str 

23 state: str 

24 pISSN: str 

25 eISSN: str 

26 title: str 

27 published: str 

28 type: str