mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-27 03:39:54 +00:00
23 lines
426 B
Python
23 lines
426 B
Python
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from typing import Callable
|
|
|
|
def on_ui_settings(callback: Callable):
|
|
pass
|
|
|
|
def on_after_component(callback: Callable):
|
|
pass
|
|
|
|
def on_before_ui(callback: Callable):
|
|
pass
|
|
|
|
else:
|
|
from modules.script_callbacks import (
|
|
on_after_component,
|
|
on_before_ui,
|
|
on_ui_settings,
|
|
)
|