Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/chardet/codingstatemachinedict.py: 27%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

11 statements  

1from typing import TYPE_CHECKING, Tuple 

2 

3if TYPE_CHECKING: 

4 # TypedDict was introduced in Python 3.8. 

5 # 

6 # TODO: Remove the else block and TYPE_CHECKING check when dropping support 

7 # for Python 3.7. 

8 from typing import TypedDict 

9 

10 class CodingStateMachineDict(TypedDict, total=False): 

11 class_table: Tuple[int, ...] 

12 class_factor: int 

13 state_table: Tuple[int, ...] 

14 char_len_table: Tuple[int, ...] 

15 name: str 

16 language: str # Optional key 

17 

18else: 

19 CodingStateMachineDict = dict