config_state.py 445 B

1234567891011121314
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. class ConfigState:
  5. """
  6. 这个类用于 先定义运行过程中所需要的变量
  7. """
  8. def __init__(self, config_name: str) -> None:
  9. self.config_name = config_name
  10. self.pending_task: list["Function"] = []
  11. self.waiting_task: list["Function"] = []
  12. self.task: str = None # 任务名大驼峰