m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
542 B

6 months ago
  1. from typing import TYPE_CHECKING, Tuple
  2. if TYPE_CHECKING:
  3. # TypedDict was introduced in Python 3.8.
  4. #
  5. # TODO: Remove the else block and TYPE_CHECKING check when dropping support
  6. # for Python 3.7.
  7. from typing import TypedDict
  8. class CodingStateMachineDict(TypedDict, total=False):
  9. class_table: Tuple[int, ...]
  10. class_factor: int
  11. state_table: Tuple[int, ...]
  12. char_len_table: Tuple[int, ...]
  13. name: str
  14. language: str # Optional key
  15. else:
  16. CodingStateMachineDict = dict