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

11 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2025-02-14 14:36 +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 "references", 

16] 

17 

18 

19class JSONCol(TypedDict): 

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

21 

22 sources: dict[str, str] 

23 pid: str 

24 state: str 

25 pISSN: str 

26 eISSN: str 

27 title: str 

28 published: str 

29 type: str