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.

123456789101112
  1. from collections.abc import Callable
  2. from typing import TYPE_CHECKING
  3. if TYPE_CHECKING:
  4. from core.tools.tool_file_manager import ToolFileManager
  5. _tool_file_manager_factory: Callable[[], "ToolFileManager"] | None = None
  6. def set_tool_file_manager_factory(factory: Callable[[], "ToolFileManager"]):
  7. global _tool_file_manager_factory
  8. _tool_file_manager_factory = factory