mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-02-25 09:34:10 +00:00
18 lines
378 B
Python
18 lines
378 B
Python
from __future__ import annotations
|
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from typing import Any, Callable, NamedTuple
|
|
|
|
class SamplerData(NamedTuple):
|
|
name: str
|
|
constructor: Callable
|
|
aliases: list[str]
|
|
options: dict[str, Any]
|
|
|
|
all_samplers: list[SamplerData] = []
|
|
|
|
else:
|
|
from modules.sd_samplers import all_samplers
|