File size: 508 Bytes
b5ba7a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from __future__ import annotations

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from typing import Callable

    def on_app_started(callback: Callable):
        pass

    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_app_started,
        on_before_ui,
        on_ui_settings,
    )